JS - Knowledge Check

Passage
•
Computers
•
University
•
Medium
John Oli
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Create a variable called carName, assign the value Volvo to it.
let ________ = "________"
2.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Fill in the Blank( See Picture )
Display the sum of 5 + 10, using two variables: x and y.
3.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Fill in the Blanks ( See Picture )
Create a variable called z, assign x + y to it, and display the result in an alert box.
4.
FILL IN THE BLANK QUESTION
2 mins • 5 pts
Fill in the Blanks (See Picture)
On one single line, declare three variables with the following names and values:
firstName = "John"
lastName = "Doe"
age = 35
5.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Fill in the Blanks ( See Picture )
Make the function return "Hello".
6.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Fill in the Blanks ( See Picture )
Create a function called "myFunction".
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
document.getElementByName("p").innerHTML = "Hello World!";
#demo.innerHTML = "Hello World!";
document.getElementById("demo").innerHTML = "Hello World!";
document.getElement("p").innerHTML = "Hello World!";
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Py-Hackathon - Week 2 - Day 2

Quiz
•
University
20 questions
HTML and CSS Quiz

Quiz
•
10th Grade - University
20 questions
Web Development and Programming

Quiz
•
University
15 questions
Web Technology

Quiz
•
University
20 questions
Python Programming

Quiz
•
University
20 questions
HTML and CSS Basics Quiz

Quiz
•
9th Grade - University
15 questions
WFun Introduction

Quiz
•
10th Grade - University
15 questions
JavaScript basics

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University