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

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

ID: 3542471 • Letter: 1

Question

1) What is the output of following JavaScript code?

<script type="text/javascript">

x=4+"4";

document.write(x);

</script>

a) 44

b) 8

c) 4

d) Error output

2) What is the output of following JavaScript code?

<script type="text/javascript">

var cst = "Chadha Software Technologies";

var result = cst.split(" ");

document.write(result);

</script>

a) Chadha

b) C,h,a,d,h,a,S,o,f,t,w,a,r,e,T,e,c,h,n,o,l,o,g,i,e,s

c) Chadha,Software,Technologies

d) Chadha Software Technologies

3) Is it possible to nest functions in JavaScript?

a) True

b) False

Explanation / Answer

a

c

a