
JavaScript
Authored by Iris Smok
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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(){ };
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?