Which of the following statements is/are true? P: In a scripting language like JavaScript, types are typically associated with values, not variables.
Select the correct answer from the given below:
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.