Skip to content
Advertisement

How to check if a string is a numeric or not for example “1” is but “x” is not

JavaScript

instindex is an index for instructions array whis is array for parsed program I wanna check if the element I’m at its index is a numeric so I can perform the addittion normally else I’m gonna call my system caller

Advertisement

Answer

You can check like this:

JavaScript
Advertisement