{"json_modified": "2016-09-25T07:08:14.096710", "uuid": "9f91b9c0-327a-4a67-a3de-2d77a1ee6eff", "title": "Scope Cheatsheet", "url": "/en-US/docs/Archive/Web/Scope_Cheatsheet", "tags": ["scope", "hoisting", "JavaScript"], "translations": [{"uuid": "f4f9ea88-6ef8-47d9-a959-68905b749c85", "title": "M\u00e9mo sur les port\u00e9es", "url": "/fr/docs/Web/JavaScript/Reference/Scope_Cheatsheet", "tags": ["scope", "hoisting", "Reference", "Advanced", "R\u00e9f\u00e9rence", "JavaScript"], "summary": "JavaScript, avec les extensions Mozilla, poss\u00e8de des instructions var
dont la port\u00e9e est celle de la fonction et des instructions let
dont la port\u00e9e est celle du bloc. Ces instructions, combin\u00e9es \u00e0 l'\u00e9l\u00e9vation (hoisting en anglais) et au comportement dynamique de JavaScript font que les notions de port\u00e9es r\u00e9servent quelques surprises.", "localization_tags": [], "locale": "fr", "last_edit": "2014-09-12T04:32:23", "review_tags": []}], "modified": "2016-09-25T07:08:14", "label": "Scope Cheatsheet", "localization_tags": [], "locale": "en-US", "id": 11055, "last_edit": "2015-07-01T15:05:25", "summary": "JavaScript with Mozilla extensions has both function-scoped var
s and block-scoped let
s. Along with hoisting and dynamic behavior, scope in JavaScript is sometimes surprising.", "sections": [{"id": "var", "title": "var"}, {"id": "const", "title": "const"}, {"id": "let", "title": "let"}, {"id": "function", "title": "function"}, {"id": "Hoisting", "title": "Hoisting"}, {"id": "Parameters", "title": "Parameters"}, {"id": "with_captures_assignments_but_not_var_declarations", "title": "with captures assignments, but not var declarations"}, {"id": "eval_may_capture_assignments_but_not_var_declarations", "title": "eval may capture assignments, but not var declarations"}, {"id": "for_heads", "title": "for heads"}, {"id": "catch_variables_are_block-scoped", "title": "catch variables are block-scoped"}, {"id": "let_statements_and_expressions", "title": "let statements and expressions"}, {"id": "function_oddities", "title": "function oddities"}, {"id": "E4X_selector_predicates", "title": "E4X selector predicates"}], "slug": "Archive/Web/Scope_Cheatsheet", "review_tags": []}