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

198
Views
Dynamic JSON is not equal to Static JSON
    const name = 'My name'
    const age = 25

    const detailsDynamic = {
        'Name': `${name}`,
        'Age': `{age}`
    }

    const detailsStatic = {
        'Name':'My name',
        'Age': 25
    }

    if(detailsDynamic == detailsStatic){
        console.log('Equal details')
    }else{
        console.log('Not equal details')
    }

Why this is not the same JSON while I console it looks the same, but condition fails always to 'Not equal details' Can someone help?

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!