Comparatives and Superlatives
Comparar cosas y encontrar el extremo
En programación, los operadores de comparación (`>`, `<`, `>=`) evalúan la relación entre valores. Los comparatives en inglés hacen exactamente lo mismo: comparan DOS elementos y establecen una relación de superioridad, inferioridad o igualdad. Es un `if (a > b)` pero expresado con palabras.
Los superlatives son como encontrar el `Math.max()` o `Math.min()` de un array: identifican el elemento EXTREMO dentro de un grupo. Cuando dices 'She is the tallest', estás ejecutando una función que escanea todas las opciones y devuelve la que tiene el valor máximo en la propiedad 'height'.
La formación sigue reglas de transformación similares a un parser: adjetivos cortos (1 sílaba) añaden -er/-est, adjetivos largos (3+ sílabas) usan more/most, y hay irregularidades como good → better → best que debes memorizar como special cases en tu switch statement.
COMPARATIVE: SUJETO + BE + adjetivo-er + THAN + otro sujeto SUPERLATIVE: SUJETO + BE + THE + adjetivo-est + IN/OF + grupo She is taller than her brother She is the tallest in the family
Debugging lab
Corrige o completa la línea. 7 ejercicios por tema.
- 2.4.7.1
She is more tall than her sister.
- 2.4.7.2
This is the most big building in the city.
- 2.4.7.3
He is more good at math than me.
- 2.4.7.4
This movie is the more interesting of all.
- 2.4.7.5
My car is fastest than yours.
- 2.4.7.6
She is the most tallest student in class.
- 2.4.7.7
This restaurant is worser than the other one.
- 2.4.7.8
My house is more small than yours.
- 2.4.7.9
She is the best student in the whole school.
- 2.4.7.10
This book is more better than the movie.
- 2.4.7.11
He is farer away than his brother.