Closed Bug 1267138 Opened 9 years ago Closed 9 years ago

Categories

(Developer Documentation Graveyard :: JavaScript, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sairampujari, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 Steps to reproduce: Hi Team, When I'm searching for a topic "Variable hoisting" in "https://developer.mozilla.org/" I came to know that there is a mistake in the output of a sample code given in the site. Actual results: Issue: Please find the below code var x; console.log(x === undefined); // logs "true" x = 3; Expected results: The above code should actually logs "false" due to Variable Hoisting is accepted in Javascript.
Provide the URL to the documentation page with the error, please. Is it https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types ?
Component: Untriaged → JavaScript
Flags: needinfo?(sairampujari)
Product: Firefox → Developer Documentation
Summary: Hi Team, → Code error in example of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types
Yes, that is the URL and kindly go to the topic "Variable hoisting" for the issue.
Flags: needinfo?(sairampujari)
I confirm that the "true" in the comments here should be "false" and have now fixed it.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.