I was testing with this code and trying to understand what’s really the difference
var array = ['c', 3, {}, "text"]
console.log.apply(console, array); //outputs c 3 {} "text"
console.log(array); //outputs (4) ['c', 3, {…}, "text"]
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I was testing with this code and trying to understand what’s really the difference
var array = ['c', 3, {}, "text"]
console.log.apply(console, array); //outputs c 3 {} "text"
console.log(array); //outputs (4) ['c', 3, {…}, "text"]