+ 1
i want to make something with javascript
I want to make a promote box to ask user their age... and return value with their birth year.. how can I make it.. please tell me...
2 ответов
+ 5
var a = prompt("Please enter your age");
var d = new Date();
d=d.getFullYear();
document.write("Your birth year is "+eval("d-a"));
0
thanks a lot..👌✌