Can someone explain to me if it is possible to create a new array from an array and a string? Example:
I have this array:
let array = ['value1', 'value2']
And this string:
let testString = 'value3';
and I want to create an array from these two, which should look like this:
['value1', 'value2', 'value3']
How do I get this result? Is there a direct method for this or do I have to solve this with a loop?