Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Are we able to use ES6 syntax?

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    3
    185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Linda MacDonald
      Linda MacDonald last edited by

      Hey there guys 🙂 I've noticed that some tutorials on the backend use "var" and I am guessing that's because you are using ES5 syntax? I have only used ES6 syntax and was wondering if I am able to use it when building api's in the backend?

      1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira last edited by

        Hey Linda,
        in the frontend, yes of course, but if you do your code won't work on Internet Explorer (it's now fully deprecated in favor of Edge (based on Chrome) so less people care now)
        in the backend you can do as well in nodejs

        Linda MacDonald 1 Reply Last reply Reply Quote 1
        • Linda MacDonald
          Linda MacDonald @Joseph Benguira last edited by

          @Joseph-Benguira ah didnt know that about es6 and Explorer (hope they put Explorer to rest soon 🤓)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post