all InfoSec news
#2667: Create Hello World Function
DEV Community dev.to
In response to the recently created 30 Days of JS challenge on LeetCode, I'll be putting out my own solutions to each problem and working through a solving strategy while I'm at it.
The first challenge posted was #2667 - a problem involving a simple function-inside-function trick. Let's take a look.
Process
A brief set of instructions are given.
Write a function
createHelloWorld
. It should return a new function that always returns"Hello World"
.
The thing I'm liking …
algorithms challenge function hello javascript leetcode own problem process response simple solutions strategy working world