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.
The behaviour of the document elements in XML can be defined by
__________ tag is an extension to HTML that can enclose any number of Javascript statements.
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 :
The syntax of capturing events method for document object is