NEW
Font size
Worksheetsnode Js/Javascript Quizz
Total questions: 14
Worksheet time: 7mins
In web development, what is a framework?
A tool we use to design GUIs (Graphical user interfaces)
A cloud tool used to host websites
A place for developers to collaborate and work asynchronously
A software designed to support the development of web applications including web services, web resources, and web APIs
Which of the following code will print "Hello" on the output screen?
print("Hello");
console.log(Hello);
console.log("Hello");
printf("%s","Hello");
What JavaScript Engine is used by Google Chrome?
Y8
Adobe Flash Player
Friv
V8
What is the right syntax for importing a module?
require()
function()
import()
module.import()
What will be the output
var num = 10
console.log(num + 10)
83
20
none of these
1010
What type of variable is quantites?
var quantities = [2, 4, 10, 1]
string
boolean
array
number
What type of variable is apple?
var apple = " Fuji "
boolean
string
array
number
What will this code display
Hello user
Hello Emma
Hello+user
nothing
What will this code display?
570
569
568
attendees
What will be the output of the following code?
var x = 5; var y = 10; console.log(x * y);
50
10
105
15
Which of the following is a valid way to declare a function in JavaScript?
function myFunction[] {}
myFunction() = function {}
function myFunction() {}
function:myFunction() {}
What does the 'this' keyword refer to in JavaScript?
The current function
The global object
The parent object
The object that is executing the current function
What is the purpose of the 'let' keyword in JavaScript?
To declare a variable that is function-scoped
To declare a global variable
To declare a constant variable
To declare a variable that is block-scoped
Which of the following methods can be used to convert a string to a number in JavaScript?
parseInt()
toNumber()
convertToNumber()
stringToNumber()
