String_array is not an array


It looks like string_array isn’t an array.
undefined local variable or method `string’ for #Context:0xb171dc

string_array = [string, array]


If you write the code like that
the interpreter will be looking for a variable string and a variable array
A_string_ is like "i am a string"
An empty array is like []


but no matter what i type I get the same result


Then use


I still get an error


could you share that EXACT error-message


I get the same error for
string_array [“who”,“what”,“where”]


They want you
to give the variable string_array an associated Array-Value, and the array should contain string-items
var string_array =[“who”,“what”,“where”];


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.