Analyze the following code snippet. What will be the output of this code?
<html>
<body>
<script type="text/javascript">
var str = "Visit Gardens(now)";
var patt1 = new RegExp("(now)", "g");
patt1.test(str);
document.write(RegExp.lastParen);
</script>
</body>
</html>
Correct Answer: now
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions
JavaScript MCQs | Topic-wise