Day 1 of #30DaysOfJavaScript
Today is “Introduction”, but here’s the real lesson 👇
JavaScript mastery starts with visibility —
seeing what your code is actually doing, in real time.
🧵👇
Day 27 - Design an EventEmitter class. This interface is similar (but with some differences) to the one found in Node.js or the Event Target interface of the DOM. The Event Emitter should allow for subscribing to events and emiting them.
#30daysofjavascript#CodingChallenge
Day 25: Given a multi-dimensional array arr and a depth n. return a flattened yersion of that arrav. A multi-dimensional array is a recursive data structure that contains integers or other multi-dimensional arrays
#30daysofjavascript#CodingChallenge#LeetCode
Day 23: Given an array arr and a function fn, return a sorted array sortedArr. You can assume fn only returns numbers and those numbers determine the sort order of sortedArr. sortedArr must be sorted in ascending order by fn output.
#30daysofjavascript#CodingChallenge#LeetCode
Day 22: Write code that enhances all arrays such that you can call the array.last() method on any array and it will return the last element. If there are no elements in the array, it should return -1.
#30daysofjavascript#CodingChallenge#JavaScript#LeetCode
Day 4/5 of the refactoring trial is a WIN! 🎉 Work was reviewed and acknowledged for strictly following MVC, OOP, & DRY principles—the core requirement. 🎊🎉 Fixing some of the missing models/controllers next. Good feedback is fuel! 🔥 (Still building)
#30daysofjavascript
Day 15: Given an object or an array, return if it is empty.
An empty object contains no key-value pairs.
An empty array contains no elements.
You may assume the object or array is the output of JSON.parse.
#30daysofjavascript#CodingChallenge#JavaScript#LeetCode
Day 19: Given an array of asynchronous functions functions, return a new promise promise. Each function in the array accepts no arguments and returns a promise. All the promises should be executed in parallel.
#30daysofjavascript#CodingChallenge#JavaScript#LeetCode
A debounced function is a function whose execution is delayed by t milliseconds and whose execution is cancelled if it is called again within that window of time. The debounced function should also receive the passed parameters.
#30daysofjavascript#CodingChallenge#JavaScript
Day 16: Given an asynchronous function fn and a time t in milliseconds, return a new time limited version of the input function. fn takes arguments provided to the time limited function.
#30daysofjavascript#CodingChallenge#JavaScript#LeetCode