Toggle Navigation
Games
Blog
News
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
News
Contact us
Help center
Sign in
Study
Web 102 Mid-Semester Review
0
%
0
0
0
Back
Restart
What is the first keyword needed to define a function?
function
Oops!
Okay!
What will be displayed when this code runs?
You will eat Tuesday on Pizza.
Oops!
Okay!
How could you call this function named runCode?
runCode()
Oops!
Okay!
What is the data type of the mood variable?
String
Oops!
Okay!
Comments in JavaScript start with...
// or /*
Oops!
Okay!
Which symbols go around the body of a function definition?
{ and }
Oops!
Okay!
What will be displayed when this code runs?
Nothing
Oops!
Okay!
What's the data type of the value within the if statement?
Boolean
Oops!
Okay!
When setting a variable, what symbol goes between the variable name and variable value?
=
Oops!
Okay!
When defining a function, what comes after the function keyword?
function name
Oops!
Okay!
What's the data type?
Boolean
Oops!
Okay!
Which keyword is used to create new variables?
let
Oops!
Okay!
Which attribute will run JavaScript code when an HTML button is pressed?
onclick
Oops!
Okay!
What will be displayed when this code runs?
141
Oops!
Okay!
What's the data type of the nickname variable??
String
Oops!
Okay!
What message will be displayed when this code runs?
You are a minor
Oops!
Okay!
What's the data type?
Number
Oops!
Okay!
What's the data type?
String
Oops!
Okay!
In a function definition, the code between the { and } is called...
the body (of the function)
Oops!
Okay!
Which HTML element can include JavaScript code on a webpage?
<script>
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies