Subject 1 : JS Interactions
Question 1: What does alert do?
Question 2 : Do users enter an answer to a prompt manually or choose from a list of options?
Question 3 : What are the buttons that a user can press to respond to the confirm function?
Subject 2 : JS Math Operations
Question 1 : What are the 6 basic operations supported by JavaScript?
Question 2 : What does the % operation do?
Question 3 : What does the ** operation do?
Example of JS Math Operations
JS Calculator
Pick an operator:
The answer is...
JS Counter up to 10
View the console tab to see the results of ++, that creates a counter up to 10
JS Counter down from 10
View the console tab to see the results of --, that creates a count down from 10
Math using the modify-and-assign operator +=
The answer is...
Subject 3 : Arrays
Question 1: What are the two syntaxes for creating an empty array?
let arr = new Array();
let arr = [];
let arr = ();
Question 2: What is one operation that can be performed on an array?
Question 3: What is the length property of an array?