You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiondouble1(num){// Function declaration worksreturnnum*2;}vardouble2=function(num){// Function expression breaksreturnnum*2;}vardouble3=(num)=>{// Arrow function breaksreturnnum*2;}console.log(double1(10));console.log(double2(10));console.log(double3(10));
Expected behavior
20
20
20
Actual behavior
20
NaN
NaN
The text was updated successfully, but these errors were encountered:
Config and Small code sample
Config:
Code:
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: