Given this HTML form:
<form id="contact-form">
<input name="email" type="email" required />
<input name="phone" type="tel" />
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>Ticket #5: Implement findPokemonById
Assigned to: Groups 8 & 9
Estimated time: 25 minutes
Difficulty: ⭐⭐⭐ Medium-Hard
What You're Doing Create a new function findPokemonById that finds a Pokemon by its ID number. This ticket focuses on error handling and robust function design.
Tasks
Assigned to: Group 7 (or combine with another group)
Estimated time: 20 minutes
Difficulty: ⭐⭐ Medium
Create a brand new function calculateAverageHP that calculates the average HP of Pokemon in a list. Use TDD approach.
Assigned to: Groups 3 & 4
Estimated time: 20 minutes
Difficulty: ⭐⭐ Medium
The getStrongestPokemon function has a bug - when multiple Pokemon have the SAME attack stat, it only returns the first one. We need to return ALL tied Pokemon.
Hoisting is a JavaScript-specific behavior that moves variable and function declarations to the top of their scope during the compile phase. This means that you can use variables and functions before they’re declared in your code. While this might sound convenient, it can also lead to confusion and bugs if you're not careful.
In JavaScript, there are two main types of hoisting:
var are hoisted to the top of their scope, but only their declarations are hoisted. The initialization (assignment of a value) remains in place. This can lead to unexpected results.| const monsters = { | |
| demons: { | |
| easy: [ | |
| { name: "Imp", health: 60, damage: 20 }, | |
| { name: "Zombie", health: 20, damage: 10 } | |
| ], | |
| medium: [ | |
| { name: "Hell Knight", health: 500, damage: 45 }, | |
| { name: "Cacodemon", health: 400, damage: 35 } | |
| ], |
| // Arrays Lesson Data Sets | |
| // Basic numbers array for example | |
| const numbers = [1, 2, 3, 4, 5]; | |
| // Players data for multiplayer game examples | |
| const players = [ | |
| { name: 'DoomGuy', frags: 25, deaths: 0 }, | |
| { name: 'Slayer', frags: 25, deaths: 1 }, | |
| { name: 'Marine', frags: 12, deaths: 15 }, |
| { | |
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
| "extends": [ | |
| "config:recommended" | |
| ], | |
| "prHourlyLimit": 3, | |
| "packageRules": [ | |
| { | |
| "matchUpdateTypes": ["major"], | |
| "dependencyDashboardApproval": true |
| { | |
| "$schema": "https://json.schemastore.org/tsconfig", | |
| "display": "Base", | |
| "compilerOptions": { | |
| "lib": ["dom", "dom.iterable", "esnext"], | |
| "allowJs": false, | |
| "allowUnusedLabels": false, | |
| "allowUnreachableCode": false, | |
| "skipLibCheck": true, | |
| "strict": true, |