reading-notes
Coding Course Notes
Project maintained by liam02walker
Hosted on GitHub Pages — Theme by mattgraham
Lesson #6
JavaScript
- This is a lightweight interpreted language
- It has first class functions
- You need to link the js file into the html file so that it runs on that page
- Where you place the script is where the file will be ran
Capabilities
- Runtime Object Construction
- Variable Parameter Lists
- Function Variables
- Dynamic Script Creation
- Object Introspection
- Source-Code Recovery
JavaScript is very different to Java language!
Variables
- NEVER use var to define a variable!
- You can declare a variable in 4 ways, var, let, const
- You can provide a value to a variable which can be: number, boolean or string
- You name your variable at the start example: let NAME_VARIABLE = BOOLEAN
Functions
- This is something that will happen when the function is called upon