Keyboard Error

Challenge 📝

Resources 📚

Given are two strings correct and wrong. Return all characters that are defective. You can recognize defective characters by the fact that they are displayed incorrectly in the string wrong. Return an array with their values.

Examples:

Foobar => Fiibnr ['o', 'a']

#JavaScript Strings

Medium

unsolved

function keyboardError(correct, wrong) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag