Title:
JavaScript Variables and Data Types
Updated:
October 16, 2023
Task/Activity:
  1. Questions
  2. Coding Problems
A. Questions
Find a reference that lists all the keywords in the JavaScript programming language.
Keywords
True or false: keywords are NOT case sensitive.
False
There are some rules for how you can name variables in JavaScript. What are they?

Do not start with a number, always start lowercase, no spaces, all words following the first must be capitalized (camelCase)

What is 'camelCase'?
camelCase is a method for naming things that essentially follows the rules of naming variables
What are ALL the different data types in JavaScript (note that there are some that we did not discuss in class)?
There are Strings, numbers, bigInts, booleans, undefined, null, symbol, and object.
What is the assignment operator and why do they call it 'assignment'?
The assignment operator is how you define variables, and they are called as such because you 'assign' the variable a value.
What is a boolean data type?
Just a true or false value.
What happens if you forget to put quotes around a string when you initialize a variable to a string? How does JavaScript try to interperet this?
For example: var lastName = Jones;
The code assumes you are referencing another variable and bugs out.
What character is used to end a statement in JavaScript?
Semicolon(;)
If you declare a variable, but do not initialize it, what value will that variable store?
undefined
B. Coding Problems
Coding Problems - See the 'script' tag below this section. You will have to write some JavaScript code in it.

Here are some tips to help you with the coding problems: