Programming Languages JavaScript Objective
Mar 04, 2013

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>

Choose the correct answer:
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
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback