number t javascript code example Example: javascript number length var num = 1234 number.toString().length; // 4