Reading-Notes
My journal for Code Fellows
Project maintained by RogerMReyes
Hosted on GitHub Pages — Theme by mattgraham
JavaScript
A scripting language for Web pages
Examples of what JavaScript can do
- Store values inside variables
- Conduct Operations on pieces of text
- Run code in response to to certain events occurring on the web page
Building Blocks
Some key fundamental features of JavaScript
- Conditionals - direct your code to make decisions and carry out actions depending on inputs
- Loops - To complete tasks multiple times
- Functions - store a piece of code that does a single talk inside a defined block
How to use
- add scr= “app.js” to the section you want to add it to
- All variables should be defined with unique names
- var to generally declare variables
- let will be used if we are going to change the value
- const will be used if the value will never change
- console.log() will show what actions are happening of what you define inside
Return to Code 102 Table of Contents