📋 About
This is a JavaScript-based football match simulator built to demonstrate core ES6+ concepts in a fun and interactive way! It manages team lineups, tracks goal scorers, handles player substitutions, and even predicts the likely winner based on betting odds 🏆.
⸻
🧑💻 Topics Covered
Destructuring, Spread, Rest, Short-Circuiting, Functions, Parameters, Arguments, Odds, Comparison
⸻
✨ Features • ✅ Display both teams’ player lineups • ✅ Separate goalkeeper 🥅 from field players • ✅ Combine all players into a single array 👥 • ✅ Add substitute players to Team 1 🔄 • ✅ Destructure and display betting odds 🎯 • ✅ Dynamically count and display total goals scored ⚽ • ✅ Predict which team is more likely to win based on odds 🔮 (Using short-circuiting)
⸻
🛠️ Technologies Used • JavaScript (ES6+)
⸻
🚀 How to Run Locally 1. Clone this repo: git clone https://github.com/YourUsername/YourRepoName.git 2. Open the project folder in VS Code or any other code editor. 3. Run the JavaScript file (requires Node.js): node filename.js 👨🏫 Author • Sheharyar Ahmed 😊