Font size
WorksheetsJavaScript_G9_Quiz
Total questions: 20
Worksheet time: 11mins
It's a complex programming language that creates dynamic programming.
HTML
Python
JavaScript
CSS
Which of the following is a data type in JavaScript that represents a value that cannot be altered?
Mutable
Reference
Primitive
Composite
Which keyword is used in JavaScript to declare a variable that cannot be reassigned?
const
let
var
final
const greeting= "good morning";
What could be the mistakes in the code if it shows error in the result?
(a)
keywords such as if, switch, and for, spaces are usually added before and after the__________?
Ex. if 10<8
Indention
Whietspace
semi colon
Parentheses
A fundamental data type that can hold one of two possible values: true or false.
(a)
During a group project, Charlotte noticed that one of the team members was not contributing anything to the discussion. When asked about their input, they simply stated that they had nothing to add. What does this indicate about their involvement?
Undefined
Error
None
Which of the following are considered Primitive data types?
Number, boolean, and null
String, array, and object
Boolean, undefined, and symbol
String, number, and null
var strvar =’Please,please,please’ + by Sabrina Carpenter;
console.log(strVar);
Write the correct script to make the result show "Please,please,please by Sabrina Carpenter
(a)
var flag=true;
//flag=false;
console.log(flag);
Write the correct script to make the result show "true"
(a)
It's a type of JavaScript language that you don’t have to declare a variable’s type, because JavaScript automatically determines it for you.
Loose type
Non primative
Boolean
Which of the following is a non-primitive data type in JavaScript?
String
Number
Array
Boolean
During a coding class, Benjamin asked his peers, "What keyword is used to define a constant variable in JavaScript?"
let
const
var
static
A programming script that Initially had another name: “LiveScript
HTML
Python
JavaScript
CSS
Why it is important to know your content type for making your own youtube channel?
To know your target audience and strategy for your content.
To know what content to put in Youtube Channel.
To gain the interest of the Audience.
To know your strategies how to gain more viewers.
Var is used to declare and assign variables in JavaScript.
Choose the best example for Var.
let x = 5; var y = 10; const z = 10;
var x = '5'; let y = '10'; const z = '15';
int a = 5; float b = 10; double c = 15;
var x = 5; let y = 10; const z = 15;
The _________method is primarily used in JavaScript. It allows developers to output messages or values to the console, which is useful for debugging and understanding the behavior of their code
console.log
alert()
console.log=()
var =
Write the correct script.
Object : {"student":"Ariana","school":"DevDelight.com"}
var classroom = ()
// var classroom = new object();
classroom.student ='Ariana';
classroom.school ='DevDelight.com';
console.log('Object:' + JSON.stringify(classroom))
var classroom = {} // var classroom = new object(); classroom.student ='Ariana'; classroom.school ='DevDelight.com'; console.log('Object:' + JSON.stringify(classroom));"Object:{\"student\":\"Ariana\",\"school\":\"DevDelight.com\"}"
var classroom = {} // var classroom = new object(); classroom.student ='Ariana'; classroom.school ='DevDelight.com'; console.log('Object:' + JSON.stringify(classroom));"Object:{\"student\":\"Ariana\",\"school\":\"DevDelight.com\"}"
var classroom = {}
// var classroom = new object();
classroom.student ='Ariana';
classroom.school ='DevDelight.com';
console.log('Object:' + JSON.stringify(classroom))
Difference between var and Let
What will be the output of the following code: console.log(typeof NaN);
Number
String
Undefined
Object
