GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Documentation improvement: clarify function assignment behavior · Issue #3973 · javascript-tutorial/en.javascript.info Open DescriptionI was reading the Function expressions section and noticed a wording choice that confused me a little. The section mentions that we can "copy a function to another variable". Maybe the intention is to show that functions are values in JavaScript, the wording initially made me think that a new function was being created. issue in the section -> url -> https://javascript.info/function-expressions the example code was -> let func = sayHi; // (2) copy func(); // Hello // (3) run the copy (it works)! My understanding is that func receives a reference to the same function object rather than creating an independent copy of the function itself. This is not a major issue, but I thought a small clarification might help readers who are learning about values and references. Thank you so much for the documentation Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |