Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
Question 1
:
What will be the output of the function my_func(2)?
function my_func(a)
{
var temp = 2;
function self(b)
{
alert(a + b + (++temp));
}
self(9);
}
my_func(2);
1.
There is an error in the code.
2.
16
3.
13
4.
14