Write a JavaScript function that finds all numbers in a sequence of strings.
The input comes as array of strings. Each element represents one of the strings.
Examples:
Input:
The300
What is that?
I think it’s the 3rd movie.
Lets watch it at 22:45
Output:
300 3 22 45
Input:
123a456
789b987
654c321
0
Output:
123 456 789 987 654 321 0
Input:
Let’s go11!!!11!
Okey!1!
Output:
11 11 1
The output is all the numbers, extracted and printed on a single line – each separated by a single space.