Strings
A string is text. JavaScript gives strings handy built-in methods like
.toUpperCase(), .toLowerCase(), .length, and .includes().
"boots".toUpperCase(); // "BOOTS"
"boots".length; // 5
You can glue strings together with +: "BOOTS" + "!" is "BOOTS!".
Your task
Write a function shout that takes a string and returns it in UPPERCASE
with a single "!" added to the end.
β‘ 25 XP
π§± Code blocks
Drag a block into the editor, or tap it to drop it in where your cursor is. Add them in order to build your answer.
solution.jsRuns in your browser
Loading editorβ¦
Tests2 to pass
shout("hi") === "HI!"
shout("boots") === "BOOTS!"
Run your code to check these.