JavaScript Fundamentals Quiz
Test your knowledge of basic JavaScript concepts including output methods, dialogs, console, syntax, and statements
Questions
Finish the code below to write the message "I'm a programmer!" to a web page:
- document.write("I'm a programmer!"))
- document.write("I'm a programmer!");
- document.write("I'm a programmer!)
Which function will open an alert dialog with the message "Warning!"
- alert ("Warning)';
- alert (Warning!)
- alert("Warning!");
- alert ("Warning) )';
JavaScript is not Java
- True
- False
Which points you to the exact lines where errors occur & allows messages to be written?
- Javascript program
- Java data
- Javascript console
Which JS command tells a browser to open a dialog box with a message?
- console.log()
- alert ()
- document.write
- script ( )
Part of browser that reads/understands and runs the instruction in a Javascript program.
- javascript interpreter
- javascript console
- SRC attribute
How do you link a JavaScript file to a web page?
- using the alert tag and src property
- using the <script> tag and src property
- using the document.write and src property
What type of punctuation does a statement ends with?
- colon:
- semicolon;
- question mark ?
- exclamation mark !
The fundamental building blocks of a program.
- statement
- syntax
- alert
- javascript console
A programming language commands, special words, & punctuation used in programming
- google docs
- alert
- syntax
- javascript