Introduction to Computing

Question #144

Read the question, compare the options, and review the correct answer below.

CS101 · Midterm#144

Consider the following statement written in JavaScript: str = ”Hello” + ” World” What will be the value of str ?

  1. A
    HelloWorld
  2. B
    Hello World
  3. C
    Hello + World
  4. D
    It will result in error
Show correct answer

Correct answer: A. HelloWorld

Explanation
page 66. Answer follows the source marking. Source notes: document. write(“Hello”+”World); In this HelloWorld is string.

Check community answers against your course notes.
← More practice questionsTake a timed test