3 ms·
Probably depends on what the "commands" are. You could also do it with two Node.js functions (from npm packages). The presumption is that the available librar
by paulddraper 9y ago
Probably depends on what the "commands" are.
You could also do it with two Node.js functions (from npm packages).
The presumption is that the available library is limited, though exactly how limited depends on the interviewer.
Plenty of times I've chosen a language because of a particular function in its standard library, only to be told that function can't be used.