How to write a code in Javascript that write numbers from 1 to 100 without any digit in the code

i=false;
do{
	i++;
        console.log(i); 
}
while(String(i).length<(true+true+true))

Note that JS treats “false” value as 0 and True as 1 in arithmetic operations

Leave a Reply

Your email address will not be published. Required fields are marked *