2-d array javascript

Data Types in JavaScript A variable can hold a lot of types of data type like string, int, bool etc in JavaScript. Syntax: var <variable_name> = <value> ; var is a key word in JavaScript to define any type of variable.…