Questions and Correct
Answers | New Update
//....... - ANSWER ✔✔single line comment
/*........*/ - ANSWER ✔✔mulit-lined comment
var="..." - ANSWER ✔✔syntax to declare a variable; holds the
information assigned to that variable so that you can refer back to it later
on; an identifier
document.write(...); - ANSWER ✔✔syntax to write "..." on the
webpage
, integer - ANSWER ✔✔data type that is any whole number
float - ANSWER ✔✔data type that resembles: 39.56
string data type - ANSWER ✔✔collection of text (word, sentence, or
paragraph); MUST surround in quotations
..."\"... - ANSWER ✔✔ignores quotation marks and will treat them as
text rather than ending at those quotes
boolean data type - ANSWER ✔✔can only be true or false
%- ANSWER ✔✔modulus; gets the remainder of a dividend
=- ANSWER ✔✔assignment operator
concatenation - ANSWER ✔✔joining two strings
function name( ){
}- ANSWER ✔✔syntax for a javascript function
parameter - ANSWER ✔✔a variable that goes inside of a functions
parenthesis
0- ANSWER ✔✔what index number does an array start at?
arrayname[arrayname.length - 1]; - ANSWER ✔✔syntax to get the
last element of an array