JavaScript

Quiz
•
Computers
•
Professional Development
•
Medium
Iris Smok
Used 4+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Inside which HTML element do we put the JavaScript?
<js>
<script>
<javascript>
<scripting>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write "Hello W3docs" in an alert box?
alertBox("Hello W3docs");
msg("Hello W3docs");
alert("Hello W3docs");
modal("Hello W3docs")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable in JavaScript declared with which of the following keyword?
new
int
str
var
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct JavaScript syntax to change the content of the HTML element below?
document.getElementById("demo").innerHTML = "Hello World!";
document.getElement("p").innerHTML = "Hello World!";
document.getElementByName("p").innerHTML = "Hello World!";
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a JavaScript object?
var obj = {};
var obj = { name: "Steve"};
var obj = { name = "Steve"};
var obj = new Object();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is null in JavaScript?
Null means empty string value
Null means absence of a value
Null means unknown value
Null means zero value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid JavaScript function?
var myFunc = function myFun { };
myFunc function(){ };
function myFunc(){ };
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JavaScript

Quiz
•
Professional Development
15 questions
Javascript Datatypes and Variables(Kushal Das)

Quiz
•
Professional Development
10 questions
CS - Introduction to React Native

Quiz
•
Professional Development
15 questions
24/01/2024

Quiz
•
Professional Development
13 questions
Intro M3

Quiz
•
Professional Development
10 questions
Introdução JavaScript

Quiz
•
Professional Development
12 questions
JavaScript Quiz Day-1

Quiz
•
Professional Development
15 questions
JS

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade