![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/20805518_1610088781235_DEF.jpg)
Ali Q
Followers: 0 Following: 0
Statistics
2 Questions
0 Answers
RANK
73 632
of 293 540
REPUTATION
0
CONTRIBUTIONS
2 Questions
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 20 041
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 148 733
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
What would be the output of the below code snippet and why ?
var x = 0; a(); function a() { var x = 2; b(); console.log(x); } function b() { x++;...
mer än 3 år ago | 1 answer | 0
1
answerQuestion
Could someone please optimize this code? My code:
if (x === 0) { y = y + 2; console.log(y); } else { y = y + 3; console.log(y); }
mer än 3 år ago | 0 answers | 0