René's URL Explorer Experiment


Title: Documentation improvement: clarify function assignment behavior · Issue #3973 · javascript-tutorial/en.javascript.info · GitHub

Open Graph Title: Documentation improvement: clarify function assignment behavior · Issue #3973 · javascript-tutorial/en.javascript.info

X Title: Documentation improvement: clarify function assignment behavior · Issue #3973 · javascript-tutorial/en.javascript.info

Description: I 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 Ja...

Open Graph Description: I 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...

X Description: I 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 in...

Opengraph URL: https://github.com/javascript-tutorial/en.javascript.info/issues/3973

X: @github

direct link

Domain: www.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation improvement: clarify function assignment behavior","articleBody":"I was reading the Function expressions section and noticed a wording choice that confused me a little.\n\nThe 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.\n\n**issue in the section -\u003e url -\u003e https://javascript.info/function-expressions\ntopic is \"Function is a Value\"**\n\nthe example code was  -\u003e\nfunction sayHi() {   // (1) create\n  alert( \"Hello\" );\n}\n\nlet func = sayHi;    // (2) copy\n\nfunc(); // Hello     // (3) run the copy (it works)!\nsayHi(); // Hello    //     this still works too (why wouldn't it)\n\n\n\nMy understanding is that func receives a reference to the same function object rather than creating an independent copy of the function itself.\nThere maybe a chance that i have misunderstood it , the copy could mean the reference is copied  and a little context about reference would help even if it is included in the previous section.\n\nThis is not a major issue, but I thought a small clarification might help readers who are learning about values and references.\n\nThank you so much for the documentation\n","author":{"url":"https://github.com/sujayhegde23","@type":"Person","name":"sujayhegde23"},"datePublished":"2026-06-20T17:31:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3973/en.javascript.info/issues/3973"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9400fe09-9a5c-bf09-bc87-636faab28b41
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA4FE:E9EB2:36D3C9:48CAF0:6A57FCB7
html-safe-nonce2b872c899ecc5f4864eb90129d407124b1af439325b85c38d872a9dbec1abfa9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEZFOkU5RUIyOjM2RDNDOTo0OENBRjA6NkE1N0ZDQjciLCJ2aXNpdG9yX2lkIjoiNzYxOTQ1Mjc0NzE3NjczNzk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0b20b63a1526e5d87724da8938396b22803d4834418a6904bac9e26f30b64409
hovercard-subject-tagissue:4707740464
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascript-tutorial/en.javascript.info/3973/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f3d5af5d303894ae44df88df053f92a025faec3f10441703dee4b02239885ab7/javascript-tutorial/en.javascript.info/issues/3973
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3d5af5d303894ae44df88df053f92a025faec3f10441703dee4b02239885ab7/javascript-tutorial/en.javascript.info/issues/3973
og:image:altI 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesujayhegde23
hostnamegithub.com
expected-hostnamegithub.com
None49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121
turbo-cache-controlno-preview
go-importgithub.com/javascript-tutorial/en.javascript.info git https://github.com/javascript-tutorial/en.javascript.info.git
octolytics-dimension-user_id49552305
octolytics-dimension-user_loginjavascript-tutorial
octolytics-dimension-repository_id93253246
octolytics-dimension-repository_nwojavascript-tutorial/en.javascript.info
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93253246
octolytics-dimension-repository_network_root_nwojavascript-tutorial/en.javascript.info
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973#start-of-content
https://www.github.com/
Sign in https://www.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fen.javascript.info%2Fissues%2F3973
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://www.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fen.javascript.info%2Fissues%2F3973
Sign up https://www.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=javascript-tutorial%2Fen.javascript.info
Reloadhttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973
Reloadhttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973
Reloadhttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973
Please reload this pagehttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973
javascript-tutorial https://www.github.com/javascript-tutorial
en.javascript.infohttps://www.github.com/javascript-tutorial/en.javascript.info
Notifications https://www.github.com/login?return_to=%2Fjavascript-tutorial%2Fen.javascript.info
Fork 4k https://www.github.com/login?return_to=%2Fjavascript-tutorial%2Fen.javascript.info
Star 25.4k https://www.github.com/login?return_to=%2Fjavascript-tutorial%2Fen.javascript.info
Code https://www.github.com/javascript-tutorial/en.javascript.info
Issues 247 https://www.github.com/javascript-tutorial/en.javascript.info/issues
Pull requests 288 https://www.github.com/javascript-tutorial/en.javascript.info/pulls
Discussions https://www.github.com/javascript-tutorial/en.javascript.info/discussions
Actions https://www.github.com/javascript-tutorial/en.javascript.info/actions
Security and quality 0 https://www.github.com/javascript-tutorial/en.javascript.info/security
Insights https://www.github.com/javascript-tutorial/en.javascript.info/pulse
Code https://www.github.com/javascript-tutorial/en.javascript.info
Issues https://www.github.com/javascript-tutorial/en.javascript.info/issues
Pull requests https://www.github.com/javascript-tutorial/en.javascript.info/pulls
Discussions https://www.github.com/javascript-tutorial/en.javascript.info/discussions
Actions https://www.github.com/javascript-tutorial/en.javascript.info/actions
Security and quality https://www.github.com/javascript-tutorial/en.javascript.info/security
Insights https://www.github.com/javascript-tutorial/en.javascript.info/pulse
Documentation improvement: clarify function assignment behaviorhttps://www.github.com/javascript-tutorial/en.javascript.info/issues/3973#top
https://github.com/sujayhegde23
sujayhegde23https://github.com/sujayhegde23
on Jun 20, 2026https://github.com/javascript-tutorial/en.javascript.info/issues/3973#issue-4707740464
https://javascript.info/function-expressionshttps://javascript.info/function-expressions
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.