
IP: JavaScript & jQuery
Authored by Allison Granstedt
Computers
9th - 12th Grade
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, how would I declare a constant myName?
constant myName = "Michael Phelps";
var myName = "Michael Phelps";
const MyName = "Captain Sparrow";
const myName = "Princess Buttercup";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I declare a variable named weekDay and set it to "Tuesday"?
weekDay = "Tuesday";
let weekDay = "Tuesday";
const weekDay = "Tuesday";
WeekDay = "Tuesday";
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Which of the options below should replace ??? if we wish to sprint on the console "Gonna get coal" when the variable naughty is true?
if (???) {
console.log("Gonna get coal");
} else {
console.log("Lots of presents!");
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, how do I call myFunction()?
myFunction();
myFunction;
call myFunction();
call function myFunction();
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select one or more of the following answers to this question: Why are functions useful in JavaScript?
I can give a function any name I want.
Descriptive function names help programmers to understand the program design.
Any function can be called by from any other place in your code (code reuse).
A function gathers together a group of code to perform a particular task and gives it a name.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what symbolizes "is equal to"?
=
!=
===
==
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the jQuery statement $(document).ready() do?
It moves the <script> to the end of the HTML page.
It starts the script immediately.
It waits until the browser has finished downloading the web page to begin executing.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
PowerPoint Quiz 2
Quiz
•
9th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
10 questions
TẠO TRANG WEB BẰNG PHẦN MỀM KOMPOZER
Quiz
•
9th Grade
11 questions
Python Function
Quiz
•
11th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers
Quiz
•
10th Grade
10 questions
BÀI KIỂM TRA 15P HK2 TIN HỌC 11
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade