Let's say we have the following code.
const a = ["a", "b", "c"];
const b = [1, 2, 3];
console.log(/*processed value*/);
So when we put "a" in a, let's have 1 in b Is there only one way to get the number from one list and then the value of the number from another list?
javascript keyboard
I think this will work.
const a = ["a", "b", "c"];
const b = [1, 2, 3];
var n = a.indexOf(input);
console.log(b[n]);
585 PHP ssh2_scp_send fails to send files as intended
575 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
926 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
577 Who developed the "avformat-59.dll" that comes with FFmpeg?
631 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.