{"json_modified": "2014-09-12T04:32:26.333198", "slug": "Web/JavaScript/Reference/Scope_Cheatsheet", "tags": ["scope", "variables", "hoisting", "Reference", "Advanced", "R\u00e9f\u00e9rence", "JavaScript"], "locale": "fr", "title": "M\u00e9mo sur les port\u00e9es", "translations": [{"title": "Scope Cheatsheet", "url": "/en-US/docs/Web/JavaScript/Reference/Scope_Cheatsheet", "tags": ["scope", "variables", "hoisting"], "summary": "", "localization_tags": [], "locale": "en-US", "last_edit": "2014-03-09T18:13:46", "review_tags": []}], "modified": "2014-09-12T04:32:25", "label": "M\u00e9mo sur les port\u00e9es", "localization_tags": [], "url": "/fr/docs/Web/JavaScript/Reference/Scope_Cheatsheet", "last_edit": "2014-09-12T04:32:23", "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.", "sections": [{"id": "var", "title": "var"}, {"id": "const", "title": "const"}, {"id": "let", "title": "let"}, {"id": "function", "title": "function"}, {"id": ".C3.89l.C3.A9vation_(Hoisting)", "title": "\u00c9l\u00e9vation ( Hoisting )"}, {"id": "Param.C3.A8tres", "title": "Param\u00e8tres"}, {"id": "with_capture_les_affectations_mais_pas_les_d.C3.A9clarations_var", "title": "with capture les affectations mais pas les d\u00e9clarations var"}, {"id": "eval_peut_capturer_les_affectations_mais_pas_les_d.C3.A9clarations_var", "title": "eval peut capturer les affectations mais pas les d\u00e9clarations var"}, {"id": "for_.3A_d.C3.A9finition_du_pas_d'it.C3.A9ration", "title": "for : d\u00e9finition du pas d'it\u00e9ration"}, {"id": "Les_variables_de_catch_ont_une_port.C3.A9e_de_bloc", "title": "Les variables de catch ont une port\u00e9e de bloc"}, {"id": "Instructions_et_expressions_let", "title": "Instructions et expressions let"}, {"id": ".C3.89tranget.C3.A9_des_fonctions", "title": "\u00c9tranget\u00e9 des fonctions"}, {"id": "Pr.C3.A9dicats_de_s.C3.A9lecteur_E4X", "title": "Pr\u00e9dicats de s\u00e9lecteur E4X"}], "id": 127019, "review_tags": []}