all InfoSec news
#2665: Counter II
May 16, 2023, 3:48 p.m. | Dominic R.
DEV Community dev.to
Number 3 on the 30 Days Challenge is #2665, Counter II. This challenge is primarily an add-on to the last day, so be sure to check out my post on #2620 for concept detailing.
Process
The instructions given are pretty simple.
Write a function
createCounter
. It should accept an initial integerinit
. 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 …
accept algorithms challenge check concept counter function integer javascript leetcode object process return simple
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
SOC 2 Manager, Audit and Certification
@ Deloitte | US and CA Multiple Locations
Penetration Tester
@ Resillion | Bengaluru, India
Senior Backend Software Engineer (Java) - Privacy Engineering (Open to remote across ANZ)
@ Canva | Sydney, Australia
(Senior) Information Security Professional (w/m/d)
@ IONOS | Deutschland - Remote
Information Security (Incident Response) Intern
@ Eurofins | Katowice, Poland
Game Penetration Tester
@ Magic Media | Belgrade, Vojvodina, Serbia - Remote