git clone git://github.com/vishalz/hello-js.git hello-js
cd ./hello-js
npm install
- The purpose of this tutorial is to test your knowledge of JavaScript concepts.
- The /src folder contains a list of files that you will need to edit by completing tasks identified by @todo statements
-
Read a Topic mentioned in the Concepts sections below at MDN Javascript guide e.g. Grammer and Types.
- [Javascript Guide on MDN] (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide)
-
Locate the file related to the concept in the src folder e.g src/basic.30.types.js.
-
Follow instrunctions and complete the @todo tasks
-
Run a npm test command to test your code npm test basic.30.types
-
In case a test fails, fix code in src/basic.30.type.js and run the test again.
use following to learm basic bash and vim basics
- Define variables and print types
- pwd
- cd ~ to home directory
- ls
- mkdir ~/code
- mkdir ~/code/hallo-js
- cd ~/code/hallo-js
- touch hello.js
- vim hallo.js
- node hallo.js
- vim hallo.js
- Set line numbers :set number
- Set No Match Pattern
:NoMatchParen - Toggle between Insert mode and Command mode
- Type the following var v1 = 5; console.log (v1); console.log (typeof v1);
- Yank and Paste with Visual Mode
use visual mode select a line
yank the selection paste the selection - Save file
- Quit file
- Run file node hallo.js
- Browse to github and search for vishalz/hello-js
- cd ~/code
- git clone git://github.com/vishalz/hello-js.git hello-js
- cd ./hello-js
- npm install
-
vim src/basic.30.types.js npm test basic.30.types
-
[Declarations] (http://mzl.la/1EhvJxL)
-
vim basic.30.operators.arithmetic.js npm test basic.30.operators.arithmetic
To Test by a specific arithmentic operator
npm test basic.30.operators.arithmetic.addition npm test basic.30.operators.arithmetic.subtraction npm etst basic.30.operators.arithmetic.division npm etst basic.30.operators.arithmetic.multiplicaiton
-
[Comma operator] (http://mzl.la/SACQ45)
- Initialising npm
- Install node modules
- colors
- mocha
- should
- Inlcuding node modules using require
- git global config
- git init
- git add
- git status
- git commit
- using module.exports
- Create a module in /lib
- Use the module using require
- Number
- setup mocha module
- setup mocha test for
- Variable scope
- Variable hoisting
- Bitwise Operators
- Assignment & destructuring
- delete operator
- function * expression
- void
- yield
- this
- new operator
- instanceof
- A re-introduction to JavaScript (JS tutorial)
- JavaScript data types and data structures
- Equality comparisons and sameness
- Closures
- setup git repo on github
- git push origin master
- switch
- try/catch/throw
- Error objects
- Promises
- while
- do...while
- break/continue
- for..in
- for..of
- Closures
- Arguments and parameters
- Arrow functions
- [Function Scope] (http://mzl.la/1Fy1Ey0)
- Scope and the Function Stack
- Math
- Date