From b35d22d7d4705bddfa7f391d5e8977df52f579eb Mon Sep 17 00:00:00 2001 From: Niyaz Akhmetov Date: Thu, 19 May 2022 12:10:12 +0300 Subject: [PATCH] use `const` instead `var` in example from README.markdown --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index dd2675ce..2f2ea2ed 100644 --- a/README.markdown +++ b/README.markdown @@ -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) {