Skip to content

Instantly share code, notes, and snippets.

@zackforbing
Last active October 10, 2016 22:32
Show Gist options
  • Save zackforbing/1a24b1c5e2cbf6fbbcfa6b85e4676ab1 to your computer and use it in GitHub Desktop.
Save zackforbing/1a24b1c5e2cbf6fbbcfa6b85e4676ab1 to your computer and use it in GitHub Desktop.
Hello World Exercism

##Hello World My code: here

I did not have any responses aside from a bot, so I went looking at other solutions.

  • Option #1 (here) - I thought this guy's utilization of the falsiness of 0 was pretty clever. They also used ES6 interpolation like I did, which I saw was not common in a lot of solutions.

  • Option #2 (here) - this person also cleverly used falsiness, but of null this time. They did use concatenation for the string though. It's pretty cool how many small differences there can be in even a tiny "hello world" implementation.

  • Option #3 (here) - yet another possible solution. this one uses ternary statements...which I like in theory. it shrinks the amount of lines of code, but at the same time, they're not particularly attractive to me. it doesn't read well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment