sum in 1 to 1000 or without loop in javascript

Published --