Question:What is the output of following JavaScript code?
<script type="text/javascript">  
  var text = "This is a text";  
  var result = text.split(" "); 
   document.write(result); 
</script>
 

A This is a text 

B This,is,a,text 

C This is a text 

D "This" "is" "a" "Text" 

+ Answer
+ Report
Total Preview: 846

Copyright © 2024. Powered by Intellect Software Ltd