Skip to content

Instantly share code, notes, and snippets.

@ernes-to
Created August 20, 2017 02:27
Show Gist options
  • Select an option

  • Save ernes-to/7c35fa26f4ff5be2419391fc897a4ba3 to your computer and use it in GitHub Desktop.

Select an option

Save ernes-to/7c35fa26f4ff5be2419391fc897a4ba3 to your computer and use it in GitHub Desktop.

Revisions

  1. @VisionPoint VisionPoint created this gist Aug 20, 2017.
    7 changes: 7 additions & 0 deletions const-1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    const quantity1 = 1;
    const quantity1 = 2; // Error: Duplicate declaration "quantity"

    const quantity2 = 5;
    quantity2 = 6; // Error: "quantity2" is read-only

    const quantity3; // Error: unexpected token ;