The Constant Guard
Easy+20 XP
Mission Briefing
A rogue AI is trying to overwrite the system's core limits! You must secure the maximum connection limit in an impenetrable vault.
The Concept: Absolute Constants
A const variable is a read-only reference. Once you assign a value to it, that container is sealed. This is crucial for protecting data that should never change.
The Objective
Your function receives a generic value.
- Declare a constant named
LIMITand assign it the number 100. - Return an array containing your constant
LIMITand thevalueyou received:[LIMIT, value].
01EXAMPLE 1
Input
value = 5Output
[100, 5]Constraints
- Declare LIMIT as a const.
FundamentalsVariables
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
value5
Expected Output
[100,5]
Click RUN to test your solution