Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Web Technologies Questions
→
Bootstrap Quiz in Web Technologies Questions
→
How many ways are there with which we can declare...
1.
How many ways are there with which we can declare a variable in javascript?(A) Only one(B) Three(C) Infinitely many(D) None of the above
Answer»
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Which function of an Array object calls a function for each element in the array?(A) forEach()(B) every()(C) forEvery()(D) each()
What will be the output of the following code?<script>let ans = 6 / "3";document.write(typeof ans);</script>(A) ‘integer’(B) ‘string’(C) ‘number’(D) None of the above
What will be the output of the following code?<script>document.write(typeof('1' + 2));</script>(A) ‘number’(B) ‘string’(C) ‘boolean’(D) None of the above
Which of the following is the pop() method does?(A) Display the first element(B) Decrements length by 1(C) Increments length by 1(D) None of the mentioned
Which of the following variable names are correct according to javascript? (Multiple Choices may be correct)(A) let 1name;(B) let #name;(C) let _name;(D) let $_name;
Which method is used to insert a new element at the end of an array(A) unshift()(B) push()(C) pop()(D) None of the above
Is a variable named ‘apple’ same as ‘Apple’ in javascript?(A) Yes(B) No(C) Only when we use ‘strict’(D) None of the above
Which of the following is the correct syntax for array declaration(A) const arr={1,2,3,4}(B) const arr=[1,2,3,4](C) Both a and b(D) None of the above
What is the correct syntax for referring to an external script called ‘gfg.js’?(A) <script name=”gfg.js”>(B) <script href=”gfg.js”>(C) <script src=”gfg.js”>(D) None of these
How many ways are there with which we can declare a variable in javascript?(A) Only one(B) Three(C) Infinitely many(D) None of the above
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies