Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote