FREE LOGO

luckyNumber

luckyNumber

					// → SINTAX ↓
					luckyNumber(day, month, year);

					console.log(luckyNumber(28,10,1945));
					// → 3
					console.log(luckyNumber('28','10','1945'));
					// → 3
				
					// → ALGORITM ↓
					// → 2 + 8 = 10; 1 + 0 = 1; day = 1;
					// → 1 + 0 = 1; month = 1;
					// → 1 + 9 + 4 + 5 = 19; 1 + 9 = 10; 1 + 0 = 1; year = 1;

					// → day + month + year = 3; return 3;
				

Function at work - Select a date

Your lucky number is 3
Total page view 19679. Yesterday 158. Page visit today 142.