the .match() returns an array so to access the number we have to
target it with brackets  our match is the first so ;
with the + in the regular expression we are targeting all the numbers at the end of the string .the /d$/ on input45 would return 5.
with num = 1;
num+1 would return 11 as a string
+num+1 would return the number 2