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