A2 · temario
2.4tema 4 de 23

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.

structure.txt
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.

0/11 tests passing0%
  1. 2.4.7.1

    She is more tall than her sister.

  2. 2.4.7.2

    This is the most big building in the city.

  3. 2.4.7.3

    He is more good at math than me.

  4. 2.4.7.4

    This movie is the more interesting of all.

  5. 2.4.7.5

    My car is fastest than yours.

  6. 2.4.7.6

    She is the most tallest student in class.

  7. 2.4.7.7

    This restaurant is worser than the other one.

  8. 2.4.7.8

    My house is more small than yours.

  9. 2.4.7.9

    She is the best student in the whole school.

  10. 2.4.7.10

    This book is more better than the movie.

  11. 2.4.7.11

    He is farer away than his brother.