36) In JavaScript, Window.alert() is used to allow user to enter something a) Tr
ID: 3542472 • Letter: 3
Question
36) In JavaScript, Window.alert() is used to allow user to enter something
a) True
b) False
c) None of above
37) What is the output of following JavaScript code?
<script type="text/javascript">
function x()
{
var cst = "We are fast growing Software Company located in Chennai, India.";
var pattern = new RegExp("in","gi");
document.write(pattern.exec(cst) + " ");
document.write(pattern.exec(cst) + " ");
document.write(pattern.exec(cst) + " ");
}
</script>
a) in in In
b) in in in
c) in in null
Explanation / Answer
b
a
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.