Answer the question
In order to leave comments, you need to log in
How to parse input on the command line?
Application on Node.Js. The user enters a sequence of arithmetic operations, for example, 5+7-4. The program calculates the result. What can be used to parse this input and decompose it into components?
Thank you.
Answer the question
In order to leave comments, you need to log in
The user enters a sequence of arithmetic operations
var result = eval("5+7-4");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question