Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@UnknownDev
It should have been something like:
let age =0;
window.setinterval((1000*3600*24*7), () => {
if( currentMonth === birthMonth && currentDay === birthDay) age++;
});
The variables inside the arrow function should be defined ofcourse but I dont know the javascript Date object from the top of my head.
!rant
Var age = 14
age++
random