Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs


What is the output of the following JavaScript code? | Question 11

60. What will be the output of the following JavaScript code?

    const myArray = ['h', 'e', 'l', 'l', 'o'];
  1. he
  2. undefinedh
  3. ValueError
  4. TypeError

Answer: A) he


In JavaScript, the array indexing starts with 0. Thus, the above statement with print "h" and "e".

Comments and Discussions!

Load comments ↻

Copyright © 2024 www.includehelp.com. All rights reserved.