MCQs>IT & Programming>JavaScript>Analyze the following code snippet which uses a Javascript Regular Expression character set. What will be the output of this code?
JavaScript MCQs
Analyze the following code snippet which uses a Javascript Regular Expression character set. What will be the output of this code?
<html>
<body>
<script type="text/javascript">
var str = "Is this enough?";
var patt1 = new RegExp("[^A-J]");
var result = str.match(patt1);
document.write(result);
</script>
</body>
</html>
Answer
Correct Answer: s
Explanation:
Note: This Question is unanswered, help us to find answer for this one