The quote marks are not part of the literal Note If you attempt to embed one

The quote marks are not part of the literal note if

This preview shows page 2 - 4 out of 4 pages.

refer to the information indirectly. The quote marks are not part of the literal. */ Note If you attempt to embed one multiline comment within another, JavaScript interprets the resulting multiline comment in an unexpected way. The */ that marks the end of the embedded multiline comment is interpreted as the end of the whole multiline comment. This means that the text that
Image of page 2
follows the embedded multiline comment will not be commented out; instead, it will be interpreted as JavaScript code, and will generate syntax errors. It is recommended that you write all your comments as blocks of single-line comments. This allows you to comment out large segments of code with a multiline comment later. JavaScript // This is another multiline comment, written as a series of single-line comments. // After the statement is executed, you can refer to the content of the // aGoodIdea variable by using its name. var extendedIdea = aGoodIdea + " You never know when you'll have to figure out what it does."; Assignments and Equality The equal sign (=) is used in JavaScript statements to assign values to variables: it is the assignment operator. The left hand operand of the = operator is always an Lvalue. Examples of Lvalues are: variables, array elements, object properties. The right operand of the = operator is always an Rvalue. Rvalues can be an arbitrary value of any type, including the value of an expression. Here is an example of a JavaScript assignment statement.
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 4 pages?

  • Spring '17
  • Equals sign, Closure

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes