MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers in Technical MCQs
→
Which statement required if you want to return a v..
1.
Which statement required if you want to return a value from a function?
A.
continue
B.
break
C.
loop
D.
return
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The Function() constructor expects ______ number of string arguments
Does JavaScript allows us to write our own functions as well?
Which statement required if you want to return a value from a function?
The most common way to define a function in JavaScript is by using the ____________ keyword.
<code>Code A: <br>var x = 10; <br>y = --x + 1;<br>alert(y);<br><br>Code B: <br>var x = 10;<br>y = x-- + 1;<br>alert(y);<br></code>11.A _________ is a group of reusable code which can be called anywhere in your program.
<code>function message() {<br> var name = "Bench";<br> alert(name);<br> }</code>10.What is the output for code A and B?
Variable declared is example of ___________ Variable.
When you invoke the........ method on a function f and pass an object o, the method returns a new function.
........ functions need not allow invocations with zero arguments.
<code>num1=5;<br>function cal() {<br>num1=10;<br>num2=5;<br>num3=num2*num1;<br>console.log(num3);<br>}<br>cal();<br></code>6.Functions are invoked as functions or as methods with an __________.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply