コード

こーど
noun
code; cord; chord
1. code
A system of words, symbols, or rules for communication or programming.
コードを書(か)く。
I write code.
I looked at the program code.
There's a problem with this code. I have to fix it.
2. cord, cable
An electrical wire or cable.
コードをつなぐ。
I connect the cord.
I plug the power cord into the outlet.
I don't have an extension cord, so the vacuum cleaner won't reach.
3. chord
A combination of musical notes played together.
コードを弾(ひ)く。
I play chords.
I learned guitar chords.
The chords for this song are difficult, but with practice I'll be able to play them.

コード is a versatile loanword with three distinct meanings from different English words:

COMPOUNDS (code):

COMPOUNDS (cord):

COMPOUNDS (chord):

Context usually makes the meaning clear.