LIVE Course for free

Rated by 1 million+ students
Get app now
JEE MAIN 2023
JEE MAIN 2023 TEST SERIES
NEET 2023 TEST SERIES
NEET 2023
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
31 views
in General by (48.1k points)
closed by

 Consider the following statements with respect to JavaScript:

(I) A variable is created using the var keyword

(II) JavaScript is untyped language.

Which of the above are true?  


1. (I) only 
2. Both (I) and (II) 
3. (II) only 
4. neither (I) nor (II)

1 Answer

0 votes
by (35.4k points)
selected by
 
Best answer
Correct Answer - Option 2 : Both (I) and (II) 

Concept:

Javascript was created to make webpages live. It is a scripting language that enables to create dynamically updating content and allows to implement complex features or web pages.

Explanation:

Statement (I): A variable is created using the var keyword

Javascript variable: It is simply a name of storage location. Javascript variable is created using the var keyword.

Example: var x= 20;

Therefore it is correct.

Statement (II): JavaScript is an untyped language.

Javascript is an untyped language. It means that a javascript variable can hold a value of any data type. It does not work like C, C++, Java. Data types like int, char are not needed here.

Therefore it is correct.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...