You have responded to my pointing out that '->' syntax doesn't work in current browsers with an example of a different bit of syntax, '=>', that works in a single development browser. I don't follow your point.
Sorry you asked for an example which works in a Javascript console, I gave one, if you were trying to make a snarky reply about the state of es6 support in modern browsers then I misread it.
Actually when I posted it I was honestly unaware if that was ES6 Javascript or just Coffescript or something. People seem to throw them all about interchangeably which is very confusing to people like me who don't follow Javascript development.