René's URL Explorer Experiment


Title: Error about using var · Issue #1 · alhassy/JavaScriptCheatSheet · GitHub

Open Graph Title: Error about using var · Issue #1 · alhassy/JavaScriptCheatSheet

X Title: Error about using var · Issue #1 · alhassy/JavaScriptCheatSheet

Description: In the same way, for the same purpose, we may use var but it has undesirable properties; e.g., its declarations are in the global scope and no error is raised using var x = ⋯ if x is already declared. This is at the end of the Types sect...

Open Graph Description: In the same way, for the same purpose, we may use var but it has undesirable properties; e.g., its declarations are in the global scope and no error is raised using var x = ⋯ if x is already declar...

X Description: In the same way, for the same purpose, we may use var but it has undesirable properties; e.g., its declarations are in the global scope and no error is raised using var x = ⋯ if x is already declar...

Opengraph URL: https://github.com/alhassy/JavaScriptCheatSheet/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error about using var","articleBody":"\u003e In the same way, for the same purpose, we may use `var` but it has undesirable properties; e.g., its declarations are in the global scope and no error is raised using `var x = ⋯` if `x` is already declared.\r\n\r\nThis is at the end of the _Types_ section. First bullet point of three.\r\n\r\nThe part that says _\"its declarations are in the global scope\"_ is incorrect.\r\n\r\nLater, in the _Scope and Statements_ section, you say...\r\n\r\n\u003e`let`, `const` declare local bindings; `var` always makes global ones!\r\n\r\nWhich again is incorrect. You can try this...\r\n\r\n```javascript\r\nfunction f() {\r\n    var x = 1;\r\n}\r\nconsole.log(x); // =\u003e Uncaught ReferenceError: x is not defined\r\n```\r\n\r\n...and see that `x` is **not** defined in the global scope. It will be local to the `f` function.\r\n\r\nThe difference about `var` and `let` in what regards scope is:\r\n\r\n- `var` bindings reach either _function scope_ or the _global scope_. `let` bindings can also be limited to _block scope_.\r\n- `var` declarations are hoisted to the start of the scope. `let` bindings are not (*)\r\n\r\n(*) To be more precise they are but have a mechanism that prevents usage before declaration and will throw an error, while `var` won't.","author":{"url":"https://github.com/gezeta-id","@type":"Person","name":"gezeta-id"},"datePublished":"2021-01-27T08:38:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/JavaScriptCheatSheet/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d0dfc429-f79e-e94b-6c5b-6886d2d8f962
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD31A:16944C:CF7839:118F4A1:698E4682
html-safe-nonce30cdc7808481f54d3c06bd1afffb70e4fc8e49f17c303df552ad4125e8ee2722
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzFBOjE2OTQ0QzpDRjc4Mzk6MTE4RjRBMTo2OThFNDY4MiIsInZpc2l0b3JfaWQiOiI1ODkxMDQ1MzE4OTgwNDIxMjUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac06071302e704bdeb27ddbb4e7446f27d3e771cb2fae731335b302cbdd3c77180
hovercard-subject-tagissue:794891063
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/alhassy/JavaScriptCheatSheet/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ac0c4fefd9ad18593a02655c4e935b086173fc67aa897ca5eb4057e085072c85/alhassy/JavaScriptCheatSheet/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ac0c4fefd9ad18593a02655c4e935b086173fc67aa897ca5eb4057e085072c85/alhassy/JavaScriptCheatSheet/issues/1
og:image:altIn the same way, for the same purpose, we may use var but it has undesirable properties; e.g., its declarations are in the global scope and no error is raised using var x = ⋯ if x is already declar...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegezeta-id
hostnamegithub.com
expected-hostnamegithub.com
Nonea5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082
turbo-cache-controlno-preview
go-importgithub.com/alhassy/JavaScriptCheatSheet git https://github.com/alhassy/JavaScriptCheatSheet.git
octolytics-dimension-user_id28608756
octolytics-dimension-user_loginalhassy
octolytics-dimension-repository_id246605253
octolytics-dimension-repository_nwoalhassy/JavaScriptCheatSheet
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id246605253
octolytics-dimension-repository_network_root_nwoalhassy/JavaScriptCheatSheet
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
release3dda52e29a416820ced574e74040033b820613a2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/alhassy/JavaScriptCheatSheet/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Falhassy%2FJavaScriptCheatSheet%2Fissues%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Falhassy%2FJavaScriptCheatSheet%2Fissues%2F1
Sign up https://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=alhassy%2FJavaScriptCheatSheet
Reloadhttps://github.com/alhassy/JavaScriptCheatSheet/issues/1
Reloadhttps://github.com/alhassy/JavaScriptCheatSheet/issues/1
Reloadhttps://github.com/alhassy/JavaScriptCheatSheet/issues/1
alhassy https://github.com/alhassy
JavaScriptCheatSheethttps://github.com/alhassy/JavaScriptCheatSheet
Notifications https://github.com/login?return_to=%2Falhassy%2FJavaScriptCheatSheet
Fork 22 https://github.com/login?return_to=%2Falhassy%2FJavaScriptCheatSheet
Star 220 https://github.com/login?return_to=%2Falhassy%2FJavaScriptCheatSheet
Code https://github.com/alhassy/JavaScriptCheatSheet
Issues 4 https://github.com/alhassy/JavaScriptCheatSheet/issues
Pull requests 1 https://github.com/alhassy/JavaScriptCheatSheet/pulls
Actions https://github.com/alhassy/JavaScriptCheatSheet/actions
Projects 0 https://github.com/alhassy/JavaScriptCheatSheet/projects
Security 0 https://github.com/alhassy/JavaScriptCheatSheet/security
Insights https://github.com/alhassy/JavaScriptCheatSheet/pulse
Code https://github.com/alhassy/JavaScriptCheatSheet
Issues https://github.com/alhassy/JavaScriptCheatSheet/issues
Pull requests https://github.com/alhassy/JavaScriptCheatSheet/pulls
Actions https://github.com/alhassy/JavaScriptCheatSheet/actions
Projects https://github.com/alhassy/JavaScriptCheatSheet/projects
Security https://github.com/alhassy/JavaScriptCheatSheet/security
Insights https://github.com/alhassy/JavaScriptCheatSheet/pulse
New issuehttps://github.com/login?return_to=https://github.com/alhassy/JavaScriptCheatSheet/issues/1
New issuehttps://github.com/login?return_to=https://github.com/alhassy/JavaScriptCheatSheet/issues/1
Error about using varhttps://github.com/alhassy/JavaScriptCheatSheet/issues/1#top
https://github.com/alhassy
https://github.com/gezeta-id
https://github.com/gezeta-id
gezeta-idhttps://github.com/gezeta-id
on Jan 27, 2021https://github.com/alhassy/JavaScriptCheatSheet/issues/1#issue-794891063
alhassyhttps://github.com/alhassy
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.