Skip to content

Commit

Permalink
user can not type string
Browse files Browse the repository at this point in the history
  • Loading branch information
codebymojnu committed Mar 22, 2022
1 parent 900a366 commit 6b5e6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ document.querySelector('#calculateBtn').addEventListener('click', function(){
alert("যে সালে তোমার বয়স বের করতে চাও, জন্ম সাল সেই সাল থেকে বড় হতে পারে না!") ;
}
else{
calculateAge(jonmoDate, jonmoMonth, jonmoYear, todayDate, todayMonth, todayYear);
calculateAge(+jonmoDate, +jonmoMonth, jonmoYear, +todayDate, +todayMonth, todayYear);
}
})

Expand Down

0 comments on commit 6b5e6c2

Please sign in to comment.