Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Multiplication table 1 x 1 = 1 | 1 x 2 = 2 | 1 x 3 = 3 using 2d array Javascript

I'm a beginner in Javascript and need to create multiplication table using 2d array. The result should be The result should be as below: 1 x 1 = 1 | 1 x 2 = 2 | 1 x 3 = 3. I have below variables which I can't modify. Can someone help?

const n = 3; const calc = [];

for (let i = 1; i < n; i++) {
    for (let j = 1; j < n; j++) {
    }
}console.log(calc);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Is this what you're looking for?

function calc(n){
for (let i = 1; i <= n; i++) {
    for (let j = 1; j <= n; j++) {
       console.log(`${i} * ${j} = ${i*j}`)
    }
}
}
calc(3)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!