+ 1
how I can to exclude all symbols in my if statement.
I create a calculator and I want to know how I can to do excluded of all the symbols if the user enter its in the input because I want to deal just with numbers and mathematical operators (like: +, -, *, /) another things I want to exclude its in my if statement... if you are understand what I mean you can help me please..
3 Answers
+ 5
1. <input type="number" >
https://code.sololearn.com/WfsbY4n5vA8S/?ref=app
2. number = parseInt( string )
https://code.sololearn.com/WXsl1589Q2zy/?ref=app
.
+ 1
ismail chraa Welcome. Keep up đȘ
0
Gordon thanks so much for explanation!