@@ -78,7 +78,7 @@ db.put('name', 'Level', function (err) {
78
78
See [ ` levelup ` ] [ levelup ] and [ ` leveldown ` ] [ leveldown ] for more details.
79
79
80
80
<a name =" ctor " ></a >
81
- ### ` const db = level(location[, options[, callback]])`
81
+ ### ` db = level(location[, options[, callback]]) `
82
82
The main entry point for creating a new ` levelup ` instance.
83
83
84
84
- ` location ` path to the underlying ` LevelDB ` .
@@ -104,7 +104,7 @@ Versus the equivalent:
104
104
105
105
``` js
106
106
// Will throw if an error occurs
107
- const db = level (location, options)
107
+ var db = level (location, options)
108
108
109
109
db .get (' foo' , function (err , value ) {
110
110
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`
192
192
If ` key ` and ` value ` are defined but ` type ` is not, it will default to ` 'put' ` .
193
193
194
194
``` js
195
- const ops = [
195
+ var ops = [
196
196
{ type: ' del' , key: ' father' },
197
197
{ type: ' put' , key: ' name' , value: ' Yuri Irsenovich Kim' },
198
198
{ 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
368
368
Example:
369
369
370
370
``` js
371
- const db = level (' ./my-db' )
371
+ var db = level (' ./my-db' )
372
372
373
373
db .put (' foo' , ' bar' )
374
374
.then (function () { return db .get (' foo' ) })
@@ -379,8 +379,8 @@ db.put('foo', 'bar')
379
379
Or using ` async/await ` :
380
380
381
381
``` js
382
- const main = async () => {
383
- const db = level (' ./my-db' )
382
+ var main = async () => {
383
+ var db = level (' ./my-db' )
384
384
385
385
await db .put (' foo' , ' bar' )
386
386
console .log (await db .get (' foo' ))
0 commit comments