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

254
Views
Let is not showing the value of variable

Have this very simple snippet:

let pizza ='Marguerita';

console.log(pizza); 

The above snippet works in that run snippet, but this code is not working in my browser Google Chrome Version 96.0.4664.110 (Official Build) (64-bit), in console it appears always as UNDEFINED. I have also cleared the cache but still shows undefined. Anyone can explain the possible cause?

Thanks!

Chrome snapshot

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Perhaps the text box used to filter the output has a value that causes the output to be empty. When I debug a program, I often forget to empty the search box, and I can't find the specified output. console output with filter console output without filter

And the level in the drop-down box here will also affect the output. For example, the output here will disappear as long as you cancel the info. console output with info console output without info

about 4 years ago · Santiago Trujillo Report

0

Dude, you always get 1-undefined in the end. There is nothing wrong with the code. Just try to uninstall chrome and then reinstall it.

What I got is:

enter image description here

1-undefined always stays at the bottom, that is not the value of pizza if you are getting confused. Just try reinstall chrome, there might be some bug there, in your version or installation.

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