# Javascript ## Repository Clone ``` git clone git@bitbucket.org:rk_jain/javascriptfundamentals.git ``` ## Reference ``` https://www.w3schools.com/js/ ``` ## Installation, Windows ``` 1. Install virtual box, extension pack 2. install latest ubuntu # Installation, ubuntu $ sudo apt update -y $ sudo apt install nodejs ## Mac $ brew install node ``` ## Syllabus ``` 0-arrayOperations.js 0-dataTypes.js 0-variables.js README.md topics.txt 1-arrayfunctions.js 1-functions.js 2-call_back.js 3-class.js 4-closure.js 5-debugger.js 6-doWhile.js 7-every.js 8-for.js 9-forEach.js 10-if.js 11-map_reduce_filter.js 12-oops.js 13-operators.js 14-prototypal_inheritance.js 15-recursion.js 16-regEx.js 17-spreadOperator.js 18-ternaryOperator.js 19-tryThrowCatch.js 20-while.js 21-set.js 22-map.js 23-callApplyBind.js 24-memoization.js 25-arguments.js 26-regEx.js 27-userInput.js 28-processArgv.js ``` ## Notes ``` /* // Launch Node ❯ node > 3 + 5 8 // Exit > .exit */ // Sing line comment: Print Hello World! /* Multiline Comment - line 1 - line 2 - line 3 */ // Print console.log("Hello World!") // Variables var x = 3 const z = 10 console.log('Value of x: ', x) console.log('Value of x: ', x) /* // DATA TYPES // primitive: numbers, strings, booleans, undefined( has type undefined) / null(has type object which is a bug), symbol // complex: object, function, arrays //EXAMPLES // numbers: 1, 1e1, 1e-2, Infinity( inifinity *+ infinity), NaN(infinity - infinity or infinity / infinity) // string: 'a','A' // booleans: true/false // objects: [1,2,3], {'name': 'bob'} */ ```