Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

89
Views
JavaScript Truthy, Falsey

Why does '' && 'haha' evaluate to ''

and why does 'haha' || '' evaluate to 'haha' in JavaScript?

I would think the first one evaluates to false and the second one evaluates to true

8 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs