Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

UNDER CONSTRUCTION: This is still a WIP, feel free to add questions. As soon as there are enough we can open it up to students.

Review

Test yourself with this review quiz to make sure you've learned the most important concepts from this module


What is JavaScript

Which of these is true?

  1. JavaScript is Java, but for browsers
  2. Node.js is a popular browser
  3. JavaScript can be used to make websites interactive
answer

3 is the correct answer: JavaScript works with HTML & CSS to create interactive websites:

  • HTML defines how the site is structured
  • CSS defines how the website looks
  • JavaScript defines what the site does

basic syntax

loops

How do you write a for loop to log the numbers from 0 to 9?

answer
for (let i = 0; i < 10; i++) {
  console.log(i);
}