44) Which best describes void? a) A method b) A function c) A statement d) An op
ID: 3542478 • Letter: 4
Question
44) Which best describes void?
a) A method
b) A function
c) A statement
d) An operator
45) What is the output of following JavaScript code?
<script type="text/javascript">
var cst="Chadha Software Technologies";
var result =cst.lastIndexOf("a");
document.write(result);
</script>
a) 2
b) 12
c) 11
d) 13
46) What is the output of following JavaScript code?
<script type="text/javascript">
function x()
{
var cst = "First come, first served";
var pattern = /first/g;
document.write(cst.match(pattern)[1]);
}
</script>
a) first
b) First
c) undefined
d) None of the above
Explanation / Answer
b
b
c
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.