Skip to content

Instantly share code, notes, and snippets.

View JamesAlias's full-sized avatar

Robert Baruck JamesAlias

  • Sandstorm Media GmbH
  • Dresden, Germany
View GitHub Profile
@JamesAlias
JamesAlias / cloudSettings
Last active September 7, 2020 19:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-07T19:50:26.819Z","extensionVersion":"v3.4.3"}
@JamesAlias
JamesAlias / someFizzBuzz.js
Last active March 17, 2016 13:42
A FizzBuzz implementation in JS/ES6. It could be a lot smaller and 'smarter' but it aims to be readable and understandable at the first glance. I also like the reusability.
/**
* FizzBuzz for a single value.
* @param {number} number - The value to be tested.
* @returns {number | string} - The same Number or 'Fizz', 'Buzz', 'FizzBuzz'.
*/
function fizzBuzz(number = 0) {
if (number === 0) {
return 0;
}