How to optimize Fibonacci sequence elements calculation in JavaScript

Fibonacci sequence in nature

How I’ve got an interview invitation, how I prepared to the interview and how it went.

JavaScript provides Object methods which can restrict mutability of an object. The preventExtensions(), seal() and freeze() methods are great tools, although they do not exactly work as one might intuitively expect.

What is immutability and why is it desired?

Maciej Twaróg

Programming computers is my hobby

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store