Answers for "Say Hello Say Bye in javascript"

0

Say Hello Say Bye in javascript

function sayHelloBye(name, num) {
	if (num === 1) return ("Hello " + name.charAt(0).toUpperCase() + name.slice(1));
	else if (num ===0) return ("Bye " + name.charAt(0).toUpperCase() + name.slice(1));
}
Posted by: Guest on August-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language