A

Admin • 833K Points
Coach

Q. Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be

  • (A) An integer
  • (B) A String
  • (C) An object
  • (D) None of the mentioned
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

When using square bracket notation, the expression inside the square brackets must evaluate to a sting or a value that can be converted to a string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.