Skip to content
All challenges
ProgrammingFill in the blankBeginner3 min

Clean up and shout

Skills: Strings

Task

The text has extra spaces around it. Fill in the two method names so the program logs JAVASCRIPT: first remove the spaces at both ends, then make every letter upper-case. Method names are case-sensitive.

Your answer

Fill in the blanks
const raw = " JavaScript "; const clean = raw.(); const loud = clean.(); console.log(loud); // JAVASCRIPT