What is the correct syntax to output "Hello My Name is Amy" in JavaScript?

JavaScript Quizz Batch 2

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Web-Dev Celerates
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
println("Hello My Name is Amy")
echo("Hello My Name is Amy");
console.log("Hello My Name is Amy")
printf("Hello My Name is Amy")
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What does the typeof operator return for?
Array
Object
String
Boolean
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of these is a correct way to declare a constant in JavaScript?
const PI = 3.14
let PI = 3.14
var PI = 3.14
const PI = 3,14
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What will the following code output?
true
false
undefined
NaN
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which one is the correct code to make the string ALL CAPS?
message = message.toLowerCase()
message = message.toUppercase()
message = message.toupperCase()
message = message.toUpperCase()
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which is the following is a correct arrow function syntax?
function hello ( ) => {
console.log(`Hello`)
}
const hello = ( ) => {
console.log(`Hello`)
}
hello ( ) => {
console.log(`Hello`)
}
hello => console.log('Hello')
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How do you create an array in JavaScript?
let arr = "1, 2, 3"
let arr = "[1, 2, 3]"
const arr = "[1, 2, 3]"
const arr = [1, 2, 3]
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
JS-QUIZ

Quiz
•
Professional Development
20 questions
Frontend - CTO Cup

Quiz
•
Professional Development
15 questions
Mastering JavaScript Array Methods

Quiz
•
Professional Development
20 questions
MSBTE Quiz

Quiz
•
Professional Development
19 questions
Quiz on Lambda Expressions and Functional Interfaces

Quiz
•
Professional Development
15 questions
Quiz sobre Promises em JavaScript

Quiz
•
Professional Development
20 questions
Quiz 1: Exception Handling

Quiz
•
Professional Development
25 questions
React and NodeJS with Docker

Quiz
•
Professional Development
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