add maximum number in javascript code example Example 1: js maximum number value Number.MAX_VALUE; Example 2: maximum number in javascript Number.MAX_SAFE_INTEGER