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?  

 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?   Correct Answer 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.

Related Questions

If A = x% of y and B = y% of x, then which of the following is true?
What is the value of var? $var = 'HELLO WORLD!'; $var = ucfirst($var);
Consider a system consisting of a synchronous generator working at a lagging power factor, a synchronous motor working at an overexcited condition and a directly grid-connected induction generator. Consider capacitive VAr to be a source and inductive VAr to be a sink of reactive power. Which one of the following statements is TRUE?
The following are the conditions for selecting list of a suitable candidates to be called for interview after the written test for the recruitment is conducted/ organized for management-level persons of a multi-national company. For providing accounting services and sales the candidates must (a) be holding a graduation in basic science with 65% or above or B. E degree with 55% and above marks (b) have passed the written test with 70% or above marks (c) the age must be in the group 25 to 30 years as on 1/4/18 (d) have experience in an accounting firms for three years and diploma in accounting with 60% or above marks (e) be presently drawing CTC of 6 Lakhs per annum and above In case the applicant who satisfies all other terms above except 1) at (a) above, then be referred as Junior Accountant 2) at (d) & (e) above then be referred as Trainee-Accountant Satisfying all the above with experience of 5 years then be referred as senior-Accountant Satisfying all the above criteria (a-e) with CA/ ICWA / MBA (Finance) then be refereed as manager (Accounts) Read all the above information and answer the following question Shravani has passed H. SC with 72% of marks. She has done diploma in accountancy with 62% of marks. She was working with an organization in the field of accounting in the field of accounting from 4 years and was drawing CTC of 6.5 Lakhs presently. She is 28yrs as on July 2018. She may referred for the position of: