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.

  1. Declare a constant named LIMIT and assign it the number 100.
  2. Return an array containing your constant LIMIT and the value you received: [LIMIT, value].

01EXAMPLE 1

Inputvalue = 5
Output[100, 5]

Constraints

  • Declare LIMIT as a const.
FundamentalsVariables
JavaScript
Loading...
3 Hidden

Input Arguments

value5

Expected Output

[100,5]

Click RUN to test your solution