404 Peace Not Found
  • Leetcode
  • Ruby On Rails
  • Javascript
  • Mind-Checkins
  • General
Sign in Subscribe

Javascript

[Leetcode] JS 30 Counter II

[Leetcode] JS 30 Counter II

Question 2665 arrow function/pre-increment operators/return object of functions Question Write a function createCounter. It should accept an initial integer init. It should return an object with three functions. The three functions are: * increment() increases the current value by 1 and then returns it. * decrement() reduces the current value
Peace Seeker 18 Jan 2025
[Leetcode] JS 30 To Be Or Not to Be

[Leetcode] JS 30 To Be Or Not to Be

Question 2704 return object of functions / IIFE / throw error function Write a function expect that helps developers test their code. It should take in any value val and return an object with the following two functions. * toBe(val) accepts another value and returns true if the two values === each other.
Peace Seeker 17 Jan 2025

Subscribe to 404 Peace Not Found

Don't miss out on the latest post bringing you peace :)
  • Sign up
404 Peace Not Found © 2026. Powered by Ghost