Mastermind JavaScript Vanilla