SyntaxFix
Write A Post
Hire A Developer
Questions
Since eval("3+2")=5 ,you can use it as following :
eval("3+2")=5
byId=(id)=>document.getElementById(id); byId('txt3').value=eval(`${byId('txt1').value}+${byId('txt2').value}`)
By that, you don't need parseInt
parseInt