*the output would be like this, from an array *
var x = [0, 1, 2, 3, 4]
output look and say sequence javascript