david RamirezPro Student 2,797 Points
i dont understand the question
array string with a value string , a number value, and a boolean
var data = [1 ,2 ,3] var asssorted [ i , 4 , 0 < i];
var assorted = [ i, 4, 0 < i ]
You're on the right track but lets break it down further to what you thought were valid values.
The question is asking for an array with a String, Number, Boolean values respectively
String: you put
i for string was incorrect because
"i" with quotes makes it a string. Usually beginners have trouble with this. But you were on the right track.
4 was correct datatype. Nice!
0 < i there are two right answers to this
I thought this was a cool way how you answer with a Boolean Expression and I tested it and it actually passes in the interpreter but what actually gets stored is the Boolean value it equates to, either true or false not the Expression.