All Exams Test series for 1 year @ ₹349 only
Question

Which of the following statements is/are true?

P: In a scripting language like JavaScript, types are typically associated with values, not variables.

Q: It is not possible to show images on a web page without the image tag of HTML
Select the correct answer from the given below:

The correct answer is

P only

P is true: JavaScript values have types, while a variable can hold values of different types. Q is false: an image can also be displayed through CSS, for example with background-image, without an <img> element. Hence only P is correct.

Was this answer helpful?
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App