JavaScript Questions-(Part-2)

Motivation to learn more and fly free
Prepare well to crack Interview’s



1.What is the functionality of DOM?

2.Tell different ways to refresh the page?
location.reload()
history.go()
window.location.href

3.How to assign value to ViewState?
ViewState.Add(“Name”,”UFT”);
ViewState[“Name”] = “UFT”;

4.What is the output of JS Code?
var title=”User Friendly Techy Help”;
var char = title[13];
alert(char);

5.How to make this string capitalize “UFT”;

6.What will be the output of JS Code?
var str = new String(“User Friendly Techy Help”);
alert(str.charAt(3));

var a=[‘apple’,’orange’,’banana’];
var b=[‘pineapple’, ‘guava’, ‘grapes’];
var c = a.concat(b);
alert(c[2]);

7.How to assign value to a textbox using JS?
document.getElementById(“textName”).value= “UFT”;

8.What is the output of “2” + 3 and “2” – 3 ?

9.Is “JavaScript”  a case-sensitive language?
Yes

10.What does the “noscript” tag do?


JavaScript Questions(Part-1)
More interview Questions

ufthelp

Leave a Reply

Your email address will not be published. Required fields are marked *