The Static Signal
Easy+10 XP
Mission Briefing
The deep space probe is waiting for a confirmation signal to begin its descent. You must write a function that simply transmits the universal code: 42.
The Concept: Function Returns
Every function evaluates to a value. If you don't explicitly use the return keyword, the function automatically returns undefined. The return statement immediately ends function execution and specifies the value to be returned to the caller.
The Objective
Your function does not receive any parameters.
- Use the
returnkeyword. - Simply return the exact number 42.
Constraints
FundamentalsFunctions
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
Expected Output
42
Click RUN to test your solution