two digit js 27 27

Solutions on MaxInterview for two digit js 27 27 by the best coders in the world

showing results for - "two digit js 27 27"
Manuel
25 May 2016
1var myNumber = 8;
2var formattedNumber = ("0" + myNumber).slice(-2);
3console.log(formattedNumber);