@@ -78,7 +78,7 @@ db.put('name', 'Level', function (err) {
7878See [ ` levelup ` ] [ levelup ] and [ ` leveldown ` ] [ leveldown ] for more details.
7979
8080<a name =" ctor " ></a >
81- ### ` const db = level(location[, options[, callback]])`
81+ ### ` db = level(location[, options[, callback]]) `
8282The main entry point for creating a new ` levelup ` instance.
8383
8484- ` location ` path to the underlying ` LevelDB ` .
@@ -104,7 +104,7 @@ Versus the equivalent:
104104
105105``` js
106106// Will throw if an error occurs
107- const db = level (location, options)
107+ var db = level (location, options)
108108
109109db .get (' foo' , function (err , value ) {
110110 if (err) return console .log (' foo does not exist' )
@@ -192,7 +192,7 @@ Each operation is contained in an object having the following properties: `type`
192192If ` key ` and ` value ` are defined but ` type ` is not, it will default to ` 'put' ` .
193193
194194``` js
195- const ops = [
195+ var ops = [
196196 { type: ' del' , key: ' father' },
197197 { type: ' put' , key: ' name' , value: ' Yuri Irsenovich Kim' },
198198 { type: ' put' , key: ' dob' , value: ' 16 February 1941' },
@@ -368,7 +368,7 @@ The only exception is the `level` constructor itself, which if no callback is pa
368368Example:
369369
370370``` js
371- const db = level (' ./my-db' )
371+ var db = level (' ./my-db' )
372372
373373db .put (' foo' , ' bar' )
374374 .then (function () { return db .get (' foo' ) })
@@ -379,8 +379,8 @@ db.put('foo', 'bar')
379379Or using ` async/await ` :
380380
381381``` js
382- const main = async () => {
383- const db = level (' ./my-db' )
382+ var main = async () => {
383+ var db = level (' ./my-db' )
384384
385385 await db .put (' foo' , ' bar' )
386386 console .log (await db .get (' foo' ))
0 commit comments