🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
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.