Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Convert a Number to Text

String(value) creates a text version of a value. The original value remains unchanged.

Example

const level = 3; const levelText = String(level);

levelText is the string "3".

Your task

Create yearText from year, then display exactly:

Code: JS-2026

Join "JS-" with the converted text rather than changing year.