Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test (myCondition) {
- if (myCondition == 2) {
- return "It was true";
- }
- return "It was false";
- }
- console.log(test(true)); // returns "It was true"
- console.log(test(false)); // returns "It was false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement