var x = 840;
x.toString().length;

BY Best Interview Question ON 22 Mar 2020