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

Exercise prompt

Take Part of a String

The .slice(start, end) method copies part of a string. Positions begin at zero, and the character at the ending position is not included.

Example

const label = "WEB-101"; const subject = label.slice(0, 3); const number = label.slice(4);

This produces WEB and 101. Your exercise splits a JavaScript course code.

Your task

Slice fullCode into languageCode from positions 0 through 2, and year from position 3 onward. Display Language: JS and Year: 2026.