Title: Quiz Week 2 Variables
Course: Fall 2023 - WEBD 164 (41934) > Section: Week 2 (Aug 28) How to Work with JS Data / Variables / Operators

Q: What would be the result of the below code in the alert()? - choose one

var  myString1 = "Hello";
var  myString2  = "World";
alert(myString1 + myString2);
-  Hello World
-  HelloWorld
-  "Hello""World"
- myString1myString2
A:  HelloWorld

Q: The JavaScript keyword used to create a variable is - choose one
- var
- Var
- dec
- declareVar
A: var

Q: The process of declaring a variable but not assigning it a value at that time is called - choose one
- declaration
- initialization
- assignment
- calculation
A: declaration

Q: The process of declaring a variable and assigning it a value at that time is called - choose one
- declaration
- initialization
- assignment
- calculation
A: initialization

Q: In the below code, what would the alert() display? - choose one

<script>

var myName = "Kris";

alert(myname);

</script>
- The alert would not execute because there is an error
- Teresa
- myname
- The alert() would be empty
A: The alert would not execute because there is an error