how to let jquery javascript calculate integer number code example Example: javascript number length var num = 1234 number.toString().length; // 4