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

170
Views
Modifying an ArrayBuffer with index access

I create an array of 3 bytes : array_A

I modify it : array_A[0]=34

I create a 8-byte buffer with a Uint8array view referring to array_A:

let typedarray = new Uint8Array(a);

why such a result with console.log ?

{  
  "0": 0, // where is 34 ?  
  "1": 0,  
  "2": 0  
}
let array_A=new ArrayBuffer(3);
array_A[0]=34;
console.log(array_A);
let typedarray = new Uint8Array(array_A);
console.log(typedarray);
about 4 years ago · Juan Pablo Isaza
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!