What is the output of following JavaScript code? <script type=\"text/javascript\
ID: 3544055 • Letter: W
Question
What is the output of following JavaScript code?
<script type="text/javascript">
function x()
{
var s = "Quality 100%!{[!!";
var pattern = /w/g;
var output = s.match(pattern);
document.write(output);
}
</script>
a) %,!,{,[,!,!
b) Q,u,a,l,i,t,y,1,0,0
c) Quality 100
d) Error
2) What is the output of following JavaScript code?
<script type="text/javascript">
var cst = new Array();
cst[0] = "Web Development";
cst[1] = "Application Development"
cst[2] = "Testing"
cst[3] = "Chadha Software Technologies";
document.write(cst[0,1,2,3]);
</script>
a) Error
b) Chadha Software Technologies
c) Web Development
d) Web Developmnet,Application Development,Testing,Chadha Software Technologies
Explanation / Answer
b
b
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.