Return the number of characters in a string: var str = "Hello World!"; var n = str.length; The result of n will be: 12