The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi i’m working on making an Enigma Machine in JS but i have a problem with the plugboard.
What i want to happen is that when you select a different letter it accosiates it but my problem is if you then change it it leaves the other one the same and wont change it to blank
Here’s my code on codepen
(Sorry it’s in welsh it’s for school.)