diff --git a/book/content/part01/algorithms-analysis.asc b/book/content/part01/algorithms-analysis.asc index 92ca306e..29105859 100644 --- a/book/content/part01/algorithms-analysis.asc +++ b/book/content/part01/algorithms-analysis.asc @@ -33,7 +33,7 @@ Algorithms (as you might know) are steps of how to do some tasks. When you cook, ---- import { punchDown, rollOut, applyToppings, Oven } from '../pizza-utils'; -function makePizza(dough, toppins = ['cheese']) { +function makePizza(dough, toppings = ['cheese']) { const oven = new Oven(450); const punchedDough = punchDown(dough); const rolledDough = rollOut(punchedDough); diff --git a/book/content/part02/array.asc b/book/content/part02/array.asc index b301f7cf..c2ef97aa 100644 --- a/book/content/part02/array.asc +++ b/book/content/part02/array.asc @@ -234,7 +234,7 @@ Removing the last element is very straightforward: ---- const array = [2, 5, 1, 9, 111]; array.pop(); // ↪️111 -// array: [2, 5, 1, 9, 111] +// array: [2, 5, 1, 9] ---- No element other element has been shifted, so it’s an _O(1)_ runtime. diff --git a/book/images/image33.png b/book/images/image33.png index d1d0546a..1dcc2428 100644 Binary files a/book/images/image33.png and b/book/images/image33.png differ diff --git a/book/images/image34.png b/book/images/image34.png index d2ebaf7b..e2b11292 100644 Binary files a/book/images/image34.png and b/book/images/image34.png differ