Saturday, May 6, 2023

120: JavaScript Challenge 1

 LeetCode has began a 30 day JavaScript challenge. Today I solved the first one, which was a trivial problem where you create a function which returns another function which returns Hello World. The problem itself is simple, but it touches on important concepts like closure. When a function is created, it has access to the variables declared around it. This is called a closure, and is similar in concept to scope. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...