Posts by maria pazuelo • 1 point
2 posts
-
0
votes1
answer91
viewsQ: JS function to calculate age in months and years
I have this function, but when rotates the month is always giving +12 months, as if the person had already made birthday. How could fix? let daysH = document.getElementById("date"); let monthH =…
javascriptasked maria pazuelo 1 -
0
votes1
answer32
viewsQ: How could you create a javascript function that receives data from this html script? informed and age (in years and months)
based on that script: <h2>Qual sua data de nascimento?</h2> <input type="text" idade="Idade"> <input type="submit" value="Submit Idade"> I have this function, I don’t know if…