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?

Important Questions from Javascript Basics

  1. The behaviour of the document elements in XML can be defined by

  2. The syntax of capturing events method for document object is

  3. Javascript and Java has similar name because __________ is/are true.

    (a) Javascripts syntax is loosely based on Java’s syntax

    (b) Javascript is stripped down version of Java

    (c) Java and Javascript are originated from Island of Java

    Codes :

  4. __________ tag is an extension to HTML that can enclose any number of Javascript statements.

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