JavaScript Questions-(Part-2) – User friendly Tech help

n

n

n

n

n

n

n

Prepare well to crack Interview’s

n

n
n1.What is the functionality of DOM?
n
n2.Tell different ways to refresh the page?
nlocation.reload()
nhistory.go()
nwindow.location.href
n
n3.How to assign value to ViewState?
nViewState.Add(“Name”,”UFT”);
nViewState[“Name”] = “UFT”;
n
n4.What is the output of JS Code?
nvar title=”User Friendly Techy Help”;
nvar char = title[13];
nalert(char);
n
n5.How to make this string capitalize “UFT”;
n
n6.What will be the output of JS Code?
nvar str = new String(“User Friendly Techy Help”);
nalert(str.charAt(3));
n
nvar a=[‘apple’,’orange’,’banana’];
nvar b=[‘pineapple’, ‘guava’, ‘grapes’];
nvar c = a.concat(b);
nalert(c[2]);
n
n7.How to assign value to a textbox using JS?
ndocument.getElementById(“textName”).value= “UFT”;
n
n8.What is the output of “2” + 3 and “2” – 3 ?
n
n9.Is “JavaScript”  a case-sensitive language?
nYes
n
n10.What does the “noscript” tag do?

n


JavaScript Questions(Part-1)
nMore interview Questions

Was this article helpful?
YesNo

Similar Posts