A cheat sheet about the base of the programming language JS
|
jQuery
|
It makes things simpler for HTML document manipulation and traversal, animation, event handling, and Ajax.
|
|
React.js
|
Just design a simple view for individual states in your app. Next, it will render and update the right component efficiently upon data changes.
|
|
D3.js
|
Document manipulation based on data.
|
|
Lodash
|
JS utility library that makes it easier to work with numbers, arrays, strings, objects, etc.
|
|
Algolia Places
|
JavaScript library that provides an easy and distributed way of using address auto-completion on your site. It’s a blazingly fast and wonderfully accurate tool that can help increase your site user experience.
|
console.log() |
print into the terminal
|
let a = b |
create a mutable variable
|
const a = b |
create an immutable variable
|
a + b |
concatenate if both string else if both numerical sum
|
`${a} text ${b}` |
if printed show the value of the variable
|
if (condition){Do something}; else if (){}; else {} |
condition
|
for (var i = 0; i <= 11; i++){ Do something; } |
for loop
|
while (condition){ Do something; } |
while loop
|
let arr = [] |
create an array
|
arr.push() |
append the array
|
const readline = require('readline').createInterface({ input: process.stdin, output: process.stdout }); readline.question("text", (var) => { Do something ; readline.close(); }) |
to print text and take the answer from the terminal as a variable
|
class ClassName { constructor(var){this.var;} Method(){}} |
create a class
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.