how to find length of a string a javascriot code example Example: length of string in javascript var str = "Hello World!"; var n = str.length;