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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!