Ask Your Question
4

In JavaScript, what is the process for adding 1 to a large number?

asked 2021-04-09 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-28 08:00:00 +0000

devzero gravatar image

To add 1 to a large number in JavaScript, you can use the following syntax:

number = number + 1;

or the shorthand:

number++;

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-04-09 11:00:00 +0000

Seen: 8 times

Last updated: Mar 28 '23