how to give some value to an element in an array in javascript code example Example: return array javascript function func() { return [5, "string", {a: 7}]; }