Define a JavaScript function named showBinswhich has one parameter which is a JSON blob (JSON encoding). Theparameter encodes an array of Numbers. Your function should
- display the value at index 0 of the array in a text elementwhose id is “small”,
- display the value at index 1 of the array in a text elementwhose id is “med”, and
- display the value at index 2 of the array in a text elementwhose id is “large”.
Expert Answer
Answer to Define a JavaScript function named showBins which has one parameter which is a JSON blob (JSON encoding). The parameter …