LeetCode problem #412: FizzBuzz (JavaScript)

Solution #1: If statements

Solution #2: Concatenation

Solution #3: Counters

Solution #4: Extensible

--

--

--

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

【Quick App】APP content blocked by menu? Teach you one way to solve it!!

React JS — Functional Components and Hooks (Part 3)

How to get Nouns from a Sentence in Node.JS

WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components…

Next.js Single Image/Multiple Image upload to AWS s3

Sorting Algorithms: Bubble Sort

🇸🇪 MySwedish fluency bits #53, Att bita i det sura äpplet

How we are using Sentry for mobile apps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Duncan McArdle

Duncan McArdle

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

More from Medium

What is a Linked List? How to Implement Singly Linked List in JavaScript

A visual represenataion of a linked list

LeetCode 128. Longest Consecutive Sequence — JavaScript

Yet another linked list tutorial in Javascript

Prepare Coding Interview — JavaScript