-
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!"); }); });
Output:
-
Code function sayHello() {}- function sayHello(input) {
- if (input !== true){
- return "Hello World!";
- } else {
- return "Hello " + input + "!";
- }
- };
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
Please sign in or sign up to leave a comment.