Chapter 1 Introduction to Javascript Quiz
What would you place in the blank in the following JavaScript code to insert a note for other programmers to read that the interpreter would ignore?
// Need to replace with dynamic content
Which statement is correct?
A markup language called HTML is used to define the content and structure of a web page.
A(n) _____ transforms a set of instructions written in a programming language into machine code, which can be understood by a computer.
Compiler
If all of the major browsers can render a web page, this indicates that the HTML document used to produce it is well formed.
False
Which of the following languages is used for server-side scripting?
Ruby
What would you place in the blank in the following JavaScript code to insert a note for other programmers to read that the interpreter would ignore?
True
Suppose you have initialized a variable in your JavaScript program using this statement: let weight = 130; What expression should you use to modify the value of weight later in the program?
Weight = 115;
You can use the addition operator (+) in several ways in JavaScript. However, you CANNOT use the addition operator to _____.
add the integer 10 and the string "10" to return the integer 20
HTTP is important for the web's client/server system because _____.
it is the protocol used for data exchange between the client and server
A key characteristic that sets scripting languages apart from other programming languages is that _____.
scripting languages are run directly from a program, not compiled