Skip to content
/ jsgolf Public

Problems and solutions for the first Async.JS JavaScript Golf Night

Notifications You must be signed in to change notification settings

asyncjs/jsgolf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

jsgolf

Problems and solutions for the first Async.JS JavaScript Golf Night

The Problems

Inputs and outputs were secret during the competition

// title  | Plus One!
// desc   | Write a function that takes a number and returns the number plus 1
// input  | 99
// output | 100

// title  | My God It's Full of Stars
// desc   | Write a program that takes a number as input and outputs the given number of "*" characters. e.g. 10 -> "**********"
// input  | 18
// output | "******************"

// title  | Fizz Buzz
// desc   | Write a function that returns a string containing the numbers from 1 to 100 (1 per line). But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz"
// input  | null
// output | "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz\n"

// title  | Query Strung Out
// desc   | I need to parse the query string right now! e.g group=async&language=js&night=jsgolf -> {group: 'async', language: 'js', night: 'jsgolf'}
// input  | "a=b&c=d&e=f"
// output | {"a": "b", "c": "d", "e": "f"}

// title  | Title Goes Here
// desc   | Return a string in Title Case. e.i "hello world" -> "Hello World"
// input  | "my hovercraft is full of eels"
// output | "My Hovercraft Is Full Of Eels"

// title  | Quine!
// desc   | Write a program that outputs its own source code. Whitespace is ignored.
// input  |
// output | quine

About

Problems and solutions for the first Async.JS JavaScript Golf Night

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •