- All resources are from Code First Girls
- JavaScript MOOC Sprint, Lesson 2
- JS is the ‘brain’ of a web page
- Adds action and movement
- We can use clickable buttons and add functions to them
- We can add interactivity
- We can add alerts and pop-ups
- It has multiple data types
Link: var, let and const for beginners (ES6)
- The JS Console is a command line interface in your browser that can execute snippets of code.
To access it, do the following:
- Settings > More tools > Developer Tool Shortcuts:
- Mac: alt + cmd + i
- Windows: Ctrl + Shift + i
You can see the JS execution of your website in the console and run your own JS code directly in the console.
- JavaScript is the brain of our website
- We can combine variables using concatenation or interpolation
- We can use the console to see what JS does behind the scenes
- We can use operators and operands to run a lot of different types of operations and use them in for loops and if statements
- Try to compare a code or a description with day to day life. It makes things easier to understand and explain.