Skip to content

Commit

Permalink
use const instead var in example from README.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
morfey13 authored May 19, 2022
1 parent f7ec7e6 commit b35d22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ lovely and simple API.
See https://stuk.github.io/jszip for all the documentation.

```javascript
var zip = new JSZip();
const zip = new JSZip();

zip.file("Hello.txt", "Hello World\n");

var img = zip.folder("images");
const img = zip.folder("images");
img.file("smile.gif", imgData, {base64: true});

zip.generateAsync({type:"blob"}).then(function(content) {
Expand Down

0 comments on commit b35d22d

Please sign in to comment.