Google Chrome claims to support ES6 classes from version 42, but gives Uncaught SyntaxError: Unexpected token class(โฆ) when I run simple code from below in the console:
class Polygon { constructor(height, width) { this.name = 'Polygon'; this.height = height; this.width = width; }
Firefox also does not work. Microsoft Edge works great. This is normal?
VSG24 source share