beginner
JavaScript Function Basics
Understand how to create and use functions in JavaScript
📝 Содержимое промпта
Write a JavaScript program with three functions: 1) A function called 'greet' that takes a name parameter and returns a greeting message. 2) A function called 'calculateArea' that takes width and height parameters and returns the area. 3) A function called 'isEven' that takes a number parameter and returns true if it's even and false otherwise. Call each function with sample inputs and print the results.