Move History

Rooted by: Hola TDD
Fork Selected
  • Code
    function sayHello(input) {
    if (input !== true){
      return "Hello World!";
    } else {
      return "Hello " + input + "!";
    }
    };
    
    Test Cases
    describe("given we are annonymous", () => {
      it("should say hello world", () => {
        Test.assertEquals(sayHello(), "Hello World!");
      });
    });
  • Code
    • function sayHello() {
    • }
    • function sayHello(input) {
    • if (input !== true){
    • return "Hello World!";
    • } else {
    • return "Hello " + input + "!";
    • }
    • };