Home / Decode an Image
Write a function that will decode a cryptic image from a web page.
The function will be provided a URL like the following:
https://challenges.codeadam.ca/decode-an-image-sample-1
The table in the example URL includes a list of colours, x, and y coordinates. When the colours are placed in a grid using the x and y coordinates they will create a small image.
For example, the above URL will create the following image:
Once your code is complete, test your function with the following URLs:
/**
* Reverses the value of the input.
*
* @param {string|url} url - The URL of the grid to decode.
* @returns {void}
*/
function decode(url) {
// ...
}
console.log()
the input.html
.table
from the html
variable.grid
.grid
array and generate an image using a table
, a set of divs
, or unicode characters.