(str)
| 56 | } |
| 57 | |
| 58 | function checkNum(str) { |
| 59 | for (var i = 0; i < str.length; i++) { |
| 60 | var ch = str.charAt(i); |
| 61 | if (ch < "0" || ch > "9") { |
| 62 | if (ch != "/" && ch != "*" && ch != "+" && ch != "-" && ch != "." |
| 63 | && ch != "(" && ch!= ")" && ch != "%") { |
| 64 | alert("invalid entry!") |
| 65 | return false |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | return true |
| 70 | } |
nothing calls this directly
no outgoing calls
no test coverage detected