Which is the correct way to write a JavaScript array?
Javascript Quiz

Quiz
•
Computers
•
University
•
Hard
shruti keshari
Used 63+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var txt = new Array(1:"tim",2:"kim",3:"jim")
var txt = new Array:1=("tim")2=("kim")3=("jim")
var txt = new Array("tim","kim","jim")
var txt = new Array="tim","kim","jim"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for referring to an external script called " abc.js"?
<script href=" abc.js">
<script name=" abc.js">
<script src=" abc.js">
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct JavaScript syntax to write "Hello World"?
System.out.println("Hello World")
println ("Hello World")
document.write("Hello World")
response.write("Hello World")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does JavaScript store dates in a date object?
The number of milliseconds since January 1st, 1970
The number of days since January 1st, 1900
The number of seconds since Netscape's public stock offering.
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid JavaScript variable name?
2names
_first_and_last_names
FirstAndLast
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can't be done with client-side JavaScript?
Validating a form
Sending a form's contents by email
Storing the form's contents to a database file on the server
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create a Date object in JavaScript?
dateObjectName = new Date([parameters])
dateObjectName.new Date([parameters])
dateObjectName := new Date([parameters])
dateObjectName Date([parameters])
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Introduction to Python

Quiz
•
KG - University
25 questions
Java - SET -1

Quiz
•
University
35 questions
JavaScript Control Flow and Loops.

Quiz
•
10th Grade - University
25 questions
PHP

Quiz
•
University
26 questions
PHP recupero

Quiz
•
University
28 questions
PROGRAMACION WEB

Quiz
•
5th Grade - University
30 questions
logica Js vanilla

Quiz
•
University
26 questions
Typescript class 02

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade