Question: Programming Language: Javascript Lets say you are given a single string that has the following values '45, 92' You need to create a function that
Programming Language: Javascript Lets say you are given a single string that has the following values '45, 92'
You need to create a function that inserts 45 and 92 into their own variables and prints the values back to the user as two separate numbers. This should work even if the string value changes from '45, 92' too '23, 56' or etc.
Additionally, this function should work even if the values are surrounded by something like '*45, 92*' or '{45, 92}'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
