Is not stitching and comma at the end of the javascript operation standard for ES6?

Asked

Viewed 28 times

1

I see people programming this way:

import React, { Component } from 'react';

and

import React, { Component } from 'react'

not putting the comma at the end is standard of the same Es6? I found another question here in the community but the answers does not say it is a standard of Ecma. I saw programmers saying that it is the standard of Es6 and that’s why I came up with the question. I couldn’t find a document with this statement.

  • 1

    Related: https://answall.com/q/186838/101

  • 1

    In general, no, it is not standard, the best in my view is to use... but, however and yet, it goes like who is coding

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.