Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 7: Advanced JavaScript Object Handling!

Instruction

Properties and Methods for Strings

Below are some commonly used methods. For a complete list, please refer to MDN.

length

length is a property, not a method. Hence, there are no parentheses (). It returns the length of the string as a whole number.

const foo = "Hello!";
alert(foo.length);    // 6

concat(text)

The method returns a string where 'text' is appended to the original string.