Add leading zeros to a number in JavaScript

My approach to add leading zeros to a number in JavaScript, based on StackOverflow research

Picture with number 00001 in the center, written in monospace font.

As I was looking for a more subtle solution for inserting leading zeros to a number than if (number < 10) return `0${number}`;, I found this answer on StackOverflow, which I want to expand to near-one line code snippet.