A series to learn the JavaScript basics. Everything runs completely in the browser.
All parts of this series will run from a single web page, however the course will not be focused on web development specifically. This is simply the lowest-barrier of starting to learn: (a) get into the language mechanics, (b) avoid extra dependencies on outside tooling (e.g. Node.js).
This series is best explored on a device where you can comfortably use the browser's Developer Tools.
- JavaScript runs in the browser...along with HTML and CSS
- So, we need an HTML file to run some JavaScript
- JavaScript can run in a simple
<script>
block
- JavaScript normally runs from a separate file, not inline with HTML
- How to create a file containing JavaScript
- We don't need an auto-invoking function. The browser executes it (to play nice).
- Stick to basics:
alert()
andconsole.log()
- How to create variables
- Combine variables and strings
- if-statement
- while loop
- for loop
- Switch Statement
- Foreach loop
- Show a
foreach
loop...using an array
- Show a
- Arrays
- We can assign more than one piece of data to a single variable
- How to create an array
- A for-loop printing each item of the array
- DataTypes
- This is a good "in-betweeN" from arrays to objects
- Loops showed arrays -> Arrays show a data storage -> different types go inside objects
- String, Number, Boolean
- Show the
typeof
operator
- This is a good "in-betweeN" from arrays to objects
- Objects
- What is an object in JavaScript?
- So...store anything in
{}
?
- So...store anything in
- What is JSON?
- What is an object in JavaScript?
- the
object
type - Functions (extended)
- Hoisting
-
Call back to the original introduction video...how we discussed a brief history of JavaScript
-
Explain what this update was--the largest single update JavaScript had ever received
- Or at least first major update since ES5 (2009)
-
var, let, const
-
arrow functions
-
the
new
keyword
- Closures
- Memoization
- Callbacks
ES6 Tutorial - https://www.javascripttutorial.net/es6/
- Lessons on the specific pieces of the ES6 update, from 2015
Zed Shaw's, Learn Code the Hard Way - https://learncodethehardway.org/
JavaScript.Info - https://javascript.info/
- A very thorough collection of JavaScript tutorials
MDN Web Docs, JavaScript - https://developer.mozilla.org/en-US/docs/Web/JavaScript