Solution Review: A Simple Interpreter
Let's discuss the solution for the variable declaration challenge in the last lesson.
We'll cover the following...
Coding solution
The solution is as simple as the challenge itself.
Press + to interact
my_reg_exp = /(var)\s([a-z]+)\s=\s([0-9]+)/gconsole.log(my_reg_exp)
Explanation
Here’s how we have handled the four ...