Question: USE JAVASCRIPT In the game scrabble, users can click on the letters that they have possession of in the requested order to form a word
USE JAVASCRIPT
In the game scrabble, users can click on the letters that they have possession of in the requested order to form a word in English. The app captures that data in the format provided below, stored as an array of items containing the data: letter index, click order.
let input = [[10, 1], [2, 2], [2, 3], [5,3]]; The app will then proceed to form a word based on the user input clicks for the selected letters, which are provided as indexes of the specific letter (character) from the master string below:
const LOOKUP = "abcdefghijklmnopqrstuvwxyz"; Using the substring method, write some code to print the word stored in the user input captured in the variable input, to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
