Landing : Athabascau University

JavaScript classes and IE11

  • Public
By Zakaria Bakkal in the group COMP 266 April 28, 2019 - 8:28pm


I encountered a problem when using javascript classes I try to open my website using IE11. I kept getting the error: SCRIPT1002: Syntax error product.js (6,1). This means that the class keyword is not recognized by the IE11 browser. Fortunately there is a fix to this incompatibility problem. All I need is a tool to convert my classes to something IE11 understands.


download and install nodejs from

download and install babel (CLI) from

Then follow the instructions here:

After a successful instalation, you can transform your js classes to a version that IE11 understands.


These comments are moderated. Your comment will not be visible unless accepted by the content owner.

Only simple HTML formatting is allowed and any hyperlinks will be stripped away. If you need to include a URL then please simply type it so that users can copy and paste it if needed.



Group members: this is the place for your learning diary. Use this to post your zipped-up site at least once each unit, and your reflections as often as you wish (at least once per unit). Please write your reflections directly in the post, not as attached files. Where you do need to attach documents, such as for unit 1 designs, use PDF, PNG or JPG formats. You can attach files using the 'Embed content' link in the editor.

QUICK COURSE LINKS:  Add blog post - Read latest group postsFAQs: Course process : Site design : HTML : CSS : JavaScript : JQuery : AJAX : Misc