The Text Meter

Easy+15 XP

Mission Briefing

The Grand Scribe needs to know exactly how much ink to allocate for a new manuscript. You must build a text meter to count every single letter!

The Concept: String Basics

Just like arrays, strings have a .length property that corresponds to how many characters they contain. This counts everything: letters, numbers, spaces, and even punctuation! Example: "Hello!".length; // Evaluates to 6

The Objective

Your function receives a string message.

  1. Retrieve the total character count of the string using the .length property.
  2. Return that number.

01EXAMPLE 1

Inputmessage = "Code!"
Output5

Constraints

  • Return the length as a number.
FundamentalsStrings
JavaScript
Loading...
3 Hidden

Input Arguments

message"Magic"

Expected Output

5

Click RUN to test your solution