Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the output of following JavaScript code? <script type=\"text/javascript\

ID: 3541935 • Letter: W

Question

What is the output of following JavaScript code?

<script type="text/javascript">

function x(z,t)

{

alert(x.length);

}

</script>

a) Error

b) 2

c) 1

d) 3

Math. round(-20.51) = ?

a) 20

b) -21

c) 19

d) None

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

Explanation / Answer

b


b



b


are answers


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote