The .slice(start, end) method copies part of a string. Positions begin at
zero, and the character at the ending position is not included.
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.
Slice fullCode into languageCode from positions 0 through 2, and year from position 3 onward. Display Language: JS and Year: 2026.