Skip to content

Instantly share code, notes, and snippets.

@ABIDULLAH786
Created August 3, 2023 12:54

Revisions

  1. ABIDULLAH786 created this gist Aug 3, 2023.
    7 changes: 7 additions & 0 deletions variable declaration.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    // Longhand
    let x;
    let y;
    let z = "a";

    // Shorthand
    let x, y, z = "a";