Questions and Correct
Answers | New Update
What is JavaScript? - ANSWER ✔✔A computer language used
predominantly by browsers
What tools do you need to create web applications in JavaScript? -
ANSWER ✔✔A text editor, A Browser
Where do you put the JavaScript so that it will execute properly in your
documents? - ANSWER ✔✔Linked as an external file with a .js
, extension. , at the end of the body section of the HTML document, In the
head section of the HTML document, In a "script block" within the HTML
The alert() function is a method to give user feedback. What does the
command do when executed? - ANSWER ✔✔Pops up a dialog box
in the browser with text information and an "OK" button.
How would you format a comment in JavaScript to leave author notes or
assist in troubleshooting your code? - ANSWER ✔✔/* commented
text*/ , // commented text
data types recognized in JavaScript - ANSWER ✔✔Text, Numbers,
Booleans
What is a variable? - ANSWER ✔✔Temporary data storage that can
be altered, or varied.
A variable declaration is the creation of a new storage area in memory. It
is achieved using the var keyword and - ANSWER ✔✔a name.
Once declared, a variable gets its type and value through the process of
- ANSWER ✔✔declaration.
What is an array? - ANSWER ✔✔A variable that can hold more than
one value.
Which of the following is NOT a comparison operator? <