I am getting the following error while using the alart () method in javascript :


link

:wave: Welcome @mahatosudip6!

alart is not a valid method. Did you mean alert? If so, alert is only a valid method in vanilla JS, not Node. Instead use console.log like you were using earlier.

P.S. “0” is a valid age. It’s when you’ve only been alive for <12 months.

4 Likes