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