Skip to content

Instantly share code, notes, and snippets.

@b8x
Created April 21, 2023 12:30
Show Gist options
  • Save b8x/ce0418b95e03db14ebd97b2bea9c4cff to your computer and use it in GitHub Desktop.
Save b8x/ce0418b95e03db14ebd97b2bea9c4cff to your computer and use it in GitHub Desktop.

Revisions

  1. b8x created this gist Apr 21, 2023.
    4 changes: 4 additions & 0 deletions Base64Encoder.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    const message = "Hello, World!";
    const encodedMessage = btoa(message);

    console.log(encodedMessage);