Question:What is the output of following JavaScript code?  
<script type="text/javascript">   
 var s= "Good 100%";  
 var pattern = /\D/g;   
 var output= s.match(pattern);  
 document.write(output); 
</script>
 

A 100% 

B Good% 

C Good 

D G,o,o,d, ,% 

+ Answer
+ Report
Total Preview: 1066

Copyright © 2024. Powered by Intellect Software Ltd