Check if a number starts with another number or not js
How to Check if a Number Starts with Another Number in JS
If you want to check whether a number starts with another number or not in JavaScript, you can do it using the toString() method and the startsWith() method. Here is how:
Method 1: Using toString() and startsWith()
let