On Pure Functions, Referential Transparency and Equational Reasoning — I am currently learning about functional programming (FP) with JavaScript (JS). So I decided to write about my discoveries in order to improve my understanding of the subject and to help someone on a similar path. Even though always investigate relevant sources and try to fact check every claim in…