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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started