<<<<<<< HEAD Code Wars - Brett Crafton

Jenny's secret message

Question

Jenny has written a function that returns a greeting for a user. However, she's in love with Johnny, and would like to greet him slightly different. She added a special case to her function, but she made a mistake. Can you help her?

No examples

Solution by -

My Solution


	function greet(name){  
		if(name === "Johnny"){
			return "Hello, my love!"
		}
		else{ return "Hello, " + name + "!"
		}
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Jenny's secret message

Question

Jenny has written a function that returns a greeting for a user. However, she's in love with Johnny, and would like to greet him slightly different. She added a special case to her function, but she made a mistake. Can you help her?

No examples

Solution by -

My Solution


	function greet(name){  
		if(name === "Johnny"){
			return "Hello, my love!"
		}
		else{ return "Hello, " + name + "!"
		}
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39