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

212
Views
JavaScript got data from array via [ index ] instead of ( index )

in javascript and in solidity if you need to get gata from array index you can write like that let data = array[ index ] but in the testing phase, i saw javascript got data from array like this array ( index )

my array in solidity address[] public funders;

while testing in hardhat via JS

 it("add funders to array funders array", async () => {
        await fundMe.fund({ value: sendValue })
        let funder = await fundMe.funders(0)

        assert.equal(funder, deployer)
    })

array works like that array [ index ] but how is this working. ????? it shows error if i use [ ] to get data from array.

image (6)

about 4 years ago · Santiago Gelvez
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!