Home / CSE MCQs / Javascript MCQs :: Discussion

Discussion :: Javascript MCQs

  1. Consider the below given syntax

    book[datatype]=assignment_value;

    In the above syntax, the datatype within the square brackets must be
  2. A.
    An integer
    B.
    A String
    C.
    An object
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment