How do you write a single line comment?
//This is a single line comment
How many values can boolean data hold?
2 - True and False
Symbol used for strings
single or double quotes
What is the purpose of console?
test code and fix bugs
What is JavaScript?
Scripting language
Multiline Comment symbols
/* *\
Keyword to declare a variable in JavaScript?
let
Function to print text in the browser
document.write()
What code is used to displaying output to the console?
console.log("Error!")
property to change the HTML content of the HTML element
innerHTML
Is JavaScript case sensitive?
True. So variables like lastName and lastname are not the same.
data type of the following variable?
let x = 7.5
Float
Declare a variable and assign its value
let variable name = value;
Correct way to change a picture in JavaScript
document.getElementById('myImage').src='pic_bulbon.gif'"
What is the output of this code?
//x=8;
x=2;
//x=3;
console.log(x);
2
JavaScript Statements seperated by
semicolons
What symbol is not allowed for a variable name?
hyphen
Which of the following best describes a variable?
container for storing data values
Which of the following functions will print text in the browser?
document.write()
Naming scheme used by most JavaScripters
camelCase
operator that returns the type of a variable or an expression
typeof
!==
Which variable cannot be redeclared, reassigned and has a block scope?
const
Used to display important in another window
window.alert()
Declaration of a external script
<script src="myScript.js"></script>