🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
beginner

JavaScript Function Basics

#functions #javascript #parameters

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.