JavaScript has a very unusual behaviour that the other programming languages like Java. I am going to list down some of the gotchas that are there in JavaScript that make the unusual behaviour of the language.
ScrollMagic is a scroll interaction library, this means that using this library we can perform a different action at different…