Coding task · JavaScript and TypeScript course · Module 12: Functional Programming

Pure Functions in Practice

Write pure functions that calculate a dinosaur threat index.

Task

Complete the functions calculateThreatIndex, classifyThreat, and createReport so that they are pure.