Skip to content

Commit 65b854b

Browse files
author
Isaac Ramirez
committed
fix answer styles quizzes book 1
1 parent 815daf5 commit 65b854b

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

ydkjs-01-up-and-going/quizzes/book1-chap1-quiz.answers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ Write the code to:
7474

7575
###### 10.1. print `a` in the __console__
7676

77-
> `console.log(a);`
77+
> _`console.log(a);`_
7878
7979
###### 10.2. show `a` in a __popup__
8080

81-
> `alert(a);`
81+
> _`alert(a);`_
8282
8383
##### 11. Input Exercises.
8484

@@ -323,11 +323,11 @@ outer();
323323

324324
###### 30.1. Does the `inner` function have access to the `outer` function scope?
325325

326-
> `true`
326+
> _`true`_
327327
328328
###### 30.2. Does the `outer` function have access to the `inner` function scope?
329329

330-
> `false`
330+
> _`false`_
331331
332332
#### Section: Challenges
333333

ydkjs-01-up-and-going/quizzes/book1-chap1-quiz.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ Write the code to:
5656

5757
###### 10.1. print `a` in the __console__
5858

59-
> `// your code here`
59+
> _`// your code here`_
6060
6161
###### 10.2. show `a` in a __popup__
6262

63-
> `// your code here`
63+
> _`// your code here`_
6464
6565
##### 11. Input Exercises.
6666

ydkjs-01-up-and-going/quizzes/book1-chap2-quiz.answers.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
##### 1. Name the 7 built-in types available in JavaScript.
1212

13-
> `undefined`
13+
> _`undefined`_
1414
>
15-
> `object`
15+
> _`object`_
1616
>
17-
> `boolean`
17+
> _`boolean`_
1818
>
19-
> `number`
19+
> _`number`_
2020
>
21-
> `string`
21+
> _`string`_
2222
>
23-
> `symbol`
23+
> _`symbol`_
2424
>
25-
> `function`
25+
> _`function`_
2626
2727
##### 2. Name the two ways to access object properties.
2828

@@ -171,15 +171,15 @@ var index = "c";
171171
console.log({ a: 1, b: 2, c: 3 }[index]);
172172
```
173173

174-
> _3_
174+
> _`3`_
175175
176176
###### Snippet #17
177177

178178
```js
179179
console.log({ x: 100, y: 200 }.x);
180180
```
181181

182-
> _100_
182+
> _`100`_
183183
184184
###### Snippet #18
185185

@@ -798,9 +798,9 @@ var a;
798798
console.log(a);
799799
```
800800

801-
> _5_
801+
> _`5`_
802802
>
803-
> _10_
803+
> _`10`_
804804
805805
##### 16. What's the main difference between `var` and `let`?
806806

@@ -826,7 +826,7 @@ function foo () {
826826
foo();
827827
```
828828

829-
> _2_
829+
> _`2`_
830830
831831
###### Snippet #76
832832

@@ -872,7 +872,7 @@ foo();
872872
console.log(a);
873873
```
874874

875-
> _20_
875+
> _`20`_
876876
877877
#### Section: Conditionals
878878

@@ -922,13 +922,13 @@ console.log(n % 2 == 0 ? "even" : "odd")
922922

923923
##### 19. In your own words, what's `use strict;`?
924924

925-
> _Is a way to force code to be better written._
925+
> _is a way to force code to be better written._
926926
>
927-
> _Is a way to opt in to a restricted variant of JS._
927+
> _is a way to opt in to a restricted variant of JS._
928928
>
929-
> _Is a way to avoid bugs._
929+
> _is a way to avoid bugs._
930930
>
931-
> _Is the opposite of `sloppy mode`._
931+
> _is the opposite of `sloppy mode`._
932932
933933
##### 20. Use Strict. Write the output for the following code snippets
934934

@@ -944,7 +944,7 @@ yummy();
944944
console.log(a);
945945
```
946946

947-
> _50_
947+
> _`50`_
948948
949949
###### Snippet #80
950950

@@ -970,7 +970,7 @@ console.log(a);
970970

971971
Functions are the primary mechanism of _____ in JS.
972972

973-
> _scope_
973+
> _`scope`_
974974
975975
##### 22. Create a function `square` that takes one parameter `number` that returns the result of that `number` multiplied by itself. You need to perform this in `3` different ways
976976

ydkjs-01-up-and-going/quizzes/book1-chap3-quiz.answers.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,62 @@
1010

1111
##### 1. Accodingly to the author, what are the core concepts you will learn with the `Scope & Closures` book?
1212

13-
> Understand the misconception that JS is an "interpreted language"
13+
> _understand the misconception that JS is an "interpreted language"_
1414
>
15-
> Scope
15+
> _scope_
1616
>
17-
> Closure
17+
> _closure_
1818
>
19-
> Module Pattern
19+
> _module pattern_
2020
2121
#### Section: `this` & Object Prototypes
2222

2323
---
2424

2525
##### 2. What is expected for you to learn from the book `this & Object Prototypes`?
2626

27-
> `this` keyword
27+
> _`this` keyword_
2828
>
29-
> The Behavior Delegation design pattern over the the idea of emulating (fake) classes and (so-called "prototypal") inheritance.
29+
> _the Behavior Delegation design pattern over the the idea of emulating (fake) classes and (so-called "prototypal") inheritance._
3030
3131
#### Section: Types & Grammar
3232

3333
---
3434

3535
##### 3. Mention the core topics that you will learn in third title of the series: `Types & Grammar`.
3636

37-
> type coercion
37+
> _type coercion_
3838
3939
#### Section: Async & Performance
4040

4141
---
4242

4343
##### 4. What does the `Async & Performance` book focus on?
4444

45-
> Asynchronous programming
45+
> _asynchronous programming_
4646
>
47-
> Callbacks
47+
> _callbacks_
4848
>
49-
> Promises
49+
> _promises_
5050
>
51-
> Generators
51+
> _generators_
5252
>
53-
> Parallelism with Web Workers and data parallelism with SIMD
53+
> _parallelism with Web Workers and data parallelism with SIMD_
5454
>
55-
> Benchmarking
55+
> _benchmarking_
5656
5757
#### Section: ES6 & Beyond
5858

5959
---
6060

6161
##### 5. Finally, mention some of the new `ES6` features you'll be learning from the book `ES6 & Beyond`.
6262

63-
> destructuring, default parameter values, symbols, concise methods, computed properties, arrow functions, block scoping, promises, generators, iterators, modules, proxies, weakmaps, etc...
63+
> _destructuring, default parameter values, symbols, concise methods, computed properties, arrow functions, block scoping, promises, generators, iterators, modules, proxies, weakmaps, etc..._
6464
6565
#### Section: Summary
6666

6767
---
6868

6969
##### 6. Why are these series of books called "You Don't Know JavaScript"?
7070

71-
> Most of JS developers don't know the language itself, we have been taught that JavaScript has "good parts" and "bad parts" which we should avoid at all cost without deeply understanding what is behind the, so unfairly called, "flaws" in the language. One example of that will be __coercion__. So, these books challenge you to go beyond your comfort zone and ask deeper "why" questions to every single behavior you may encounter.
71+
> _most of JS developers don't know the language itself, we have been taught that JavaScript has "good parts" and "bad parts" which we should avoid at all cost without deeply understanding what is behind the, so unfairly called, "flaws" in the language. One example of that will be __coercion__. So, these books challenge you to go beyond your comfort zone and ask deeper "why" questions to every single behavior you may encounter._

0 commit comments

Comments
 (0)