Hi i want to generate a grid of random numbers and operators both vertical and horizontal using 2D array in javascript. how can i do it?
techyworld
0
Junior Poster in Training
Recommended Answers
Jump to PostHere is another way to create a (square) 2D array in Javascript:
var MATRIXDIM = 5; // Dimension of a square matrix var A = new Array(MATRIXDIM); for (var i = 0; i < MATRIXDIM; i++){ // Create the square Matrix A[i] = new Array(MATRIXDIM); } // …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.