From 331e19526a6d0c0927da57f07dcd23457eb3a5d5 Mon Sep 17 00:00:00 2001 From: Micah Godbolt Date: Tue, 26 Feb 2019 11:58:28 -0800 Subject: [PATCH] js var type changes --- step1-01/js-demo/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/step1-01/js-demo/README.md b/step1-01/js-demo/README.md index 49943c4..7c494b7 100644 --- a/step1-01/js-demo/README.md +++ b/step1-01/js-demo/README.md @@ -25,10 +25,10 @@ We can create a new variable with the keywords `var`, `let`, `const` and use the - **boolean**: `true`, `false` - **number**: `1`, `3.14` -- **string**: can use `'single quotes'`, `"double quotes"`, or `` `backticks` `` -- **array**: `[1, 2, 3]` -- **object**: defined inline (`{ foo: 3, bar: 'hello' })` or constructed (`new Foo()`) -- **function** +- **string**: `'single quotes'`, `"double quotes"`, or `` `backticks` `` +- **array**: `[ 1, 2, 3, 'hello', 'world']` +- **object**: `{ foo: 3, bar: 'hello' }` +- **function**: `function(foo) { return foo + 1 }` - **null** - **undefined**