In this tutorial, you are given a string. You should get the last character in the string.
str.charAt(str.length - 1)
1. Get the last character of the string value in
str, and print it to console.
let str = 'hello world'; let firstChar = str.charAt(str.length - 1); console.log(firstChar);