…8 will box the number, turning it into a double and creating a new object to put the number inside. Try to use 31 bit signed numbers whenever possible to avoid the expensive boxing operation into a JS object.How JavaScript works: inside the V8 engine + 5 tips on how to write optimized code26K54Alexander ZlatkovAdria Pinedo AlvarezFollowAug 28, 2017 · 1 min readHow?