The Spanish for syrup, jarabe, comes from the same root as the English: the Persian/Arabic sharab, which means “a drink, or wine”.
The drastically different (at least superficially) words are explained by the sh- and related (such as, sy- ) sounds changing to the Arabic-sounding j- sound in Spanish — but not English.
Thus, the j‑r-b of jarabe maps to the sy-r‑p of syrup.
The Latin sounds for “sh” — and similar variations, like “ch” and “ss” — became a “j” sound in Spanish.
Thus, the English sherry is near identical to the Spanish jerez!
These sh/j sounds were often spelt with a “x” in old Spanish; and sherry itself is named after the town it first came from, Xeres, which is near Cordova.
Enojar, Spanish for “to get angry”, has a fun cousin in the English, annoy.
Both of these (along with the French for “worldly boredom”, ennui) come from the Latin inodiare, meaning, “to hate”. The Latin in- adds emphasis to the odium, Latin for “hate”.
We can see the parallels in all with the open vowel, followed by the ‑n-, followed by a ‑y- sound, although in Spanish the ‑y- sounds (and its corresponding ‑x- and ‑sh- variations) often turned into the ‑j- sounds, as it did here. Thus, the a‑n-y maps to the e‑n-j.
Hatred, then, dissipates and weakens over time. In English, hatred weakens into mere annoyance. In Spanish, hatred weakens into just anger, enojo. And, best of all, hatred in French weakens into a world-weary boredom of ennui.
Chief, and the Spanish for the same, Jefe, both come from the same root: the French chef, which means the same.
But this is odd as they sound so different! How are they related?
It’s not obvious, but it’s easy once you understand the pattern: The Latin sound “sh” and very similar sounds (such as the “ch” and “sy”) almost always became a “j” in Spanish. Like syrup and jarabe. Not obvious!
The Spanish caja (“box”) comes from the Latin capsa for the same.
This gives us a surprising connection to some English words that, on the surface, sound very different than caja:
The Latin turned into the Spanish through an interesting pattern: the ‑sh- sound in Latin consistently turned into the ‑j- sound in Spanish (at first retaining the original pronunciation, but then under the influence of Arabic, grew to the throat-clearing sound). With caja, we have a slight variation of the pattern, where the ‑ps- sound turned into the ‑j- sound. Thus, the c‑ps maps exactly to c‑j.