Jan 26, 2018 · 1 min

Why We Need To Share Our Mathematical Confusion With Burning Passion

961

5

You’ve talked about how math is taught in school as a long row of isolated boxes occupied by mathematical concepts. If I want to try to get a better understanding of basic math, where should I start if I already know high school algebra. Should I learn number theory?

Dec 25, 2017 · 1 min

You will often run into a similar problem here.

1

Thanks for pointing that out. I suppose this approach only works when you use it functionally and completely avoid mutation. If you replace:

`copyObject.family.children = ['Greg'];`

with

`const thirdObject = Object.assign({}, copyObject, { family: { children: ['Greg'] } })`

then the first object remains unchanged.

1

Dec 24, 2017 · 1 min

A Javascript quirk that will catch you out

1.4K

19

A good way to solve this is to use this:

copyObject = Object.assign ({}, initialObject, { name: 'Bill' })

Instead of changing the object, it I stead created a whole new object based on initialObject, but the name is Bill. It’s good functional programming knowledge.

1 response