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

414
Views
Javascript: Hex to String without converting to ascii, int or xyz

i have a byte-array

sensor_id = [bytes[36],bytes[35],bytes[34],bytes[33]]

it holds the following hexadecimals

0x69, 0x72, 0x33, 0x88

I need to merge 69 72 33 88 to a string-value without conversation => "69723388".

Thanks for helping

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can convert the hexadecimal values to string by using toString(16). For more read the MDN Doc.

const arr = [0x69, 0x72, 0x33, 0x88];
const base16string = arr.map(item => item.toString(16));

console.log(base16string);
.as-console-wrapper {min-height: 100%!important; top: 0}

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!