This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let vals = [1,2,3,4,5,6,7,8,9] | |
let newVals =[] | |
newVals.push.apply(newVals, vals); | |
let newValsOdd = [] | |
newValsOdd.push.apply(newValsOdd, vals); | |
function isEven (num) { | |
return (num % 2 === 0) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to remind type of data type | |
//in javascript there are 7 type of data | |
//undefine null string boolean number symbol object | |
//you can remember with short code sunbons | |
/* | |
S = string | |
U = undefine | |
N = null | |
B = boolean | |
O = object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Hope you added spin.js and spin.css added in your html folder | |
// Custom spinner config | |
const customSpinner = { | |
custSpinUno: { | |
scale: 0.18, | |
color: '#d0d5db' | |
}, | |
custSpinDos: { | |
scale: 0.18, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- .container>.item-${$}*8 (press tab) --> |