René's URL Explorer Experiment


Title: 【JavaScript】【学习心得】学习 JavaScript 第二十二天 · Issue #24 · paddingme/Learning-JavaScript · GitHub

Open Graph Title: 【JavaScript】【学习心得】学习 JavaScript 第二十二天 · Issue #24 · paddingme/Learning-JavaScript

X Title: 【JavaScript】【学习心得】学习 JavaScript 第二十二天 · Issue #24 · paddingme/Learning-JavaScript

Description: 1. 空白 空白用来间隔字符序列,这个很好理解。另Javascript 采取两种注释方法块注释/* /和行注释//我们使用//,因为/ */中会偶尔遇到正则表达式的注释会导致错误。 2. 标识符 标识符有一个字母开头,其后可加一个或多个字母、数字或下划线。不允许使用保留字。 undefined , NaN 和 Infinity 却不是保留字。JavaScript 不允许使用保留字来命名参数或者变量,也不允许在对象字面量中,或者再一个属性存取表达式的点号之后,使用保留字作...

Open Graph Description: 1. 空白 空白用来间隔字符序列,这个很好理解。另Javascript 采取两种注释方法块注释/* /和行注释//我们使用//,因为/ */中会偶尔遇到正则表达式的注释会导致错误。 2. 标识符 标识符有一个字母开头,其后可加一个或多个字母、数字或下划线。不允许使用保留字。 undefined , NaN 和 Infinity 却不是保留字。JavaScript 不允许使用保留字来命名参数或...

X Description: 1. 空白 空白用来间隔字符序列,这个很好理解。另Javascript 采取两种注释方法块注释/* /和行注释//我们使用//,因为/ */中会偶尔遇到正则表达式的注释会导致错误。 2. 标识符 标识符有一个字母开头,其后可加一个或多个字母、数字或下划线。不允许使用保留字。 undefined , NaN 和 Infinity 却不是保留字。JavaScript 不允许使用保留字来命名参数或...

Opengraph URL: https://github.com/paddingme/Learning-JavaScript/issues/24

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"【JavaScript】【学习心得】学习 JavaScript 第二十二天","articleBody":"### 1. 空白\n\n  空白用来间隔字符序列,这个很好理解。另Javascript 采取两种注释方法块注释/* */和行注释//我们使用//,因为/* */中会偶尔遇到正则表达式的注释会导致错误。\n### 2. 标识符\n\n标识符有一个字母开头,其后可加一个或多个字母、数字或下划线。不允许使用保留字。\n\n`undefined` , `NaN` 和 `Infinity` 却不是保留字。JavaScript 不允许使用保留字来命名参数或者变量,也不允许在对象字面量中,或者再一个属性存取表达式的点号之后,使用保留字作为对象的属性名。\n### 3. 数字\n\n数字类型在内部表示为 64 位的浮点数。如果一个数字字面量有指数构成,则其值为由 e 之前的部分乘以 10 的 e 之后的部分的次方计算出来的值。*\\* NaN 是一个不等于任何值,甚至包括其自身的值**。\n### 4. 字符串\n\n字符串字面量可以被包围在双引号或单引号之中,包含 0 个或多个字符。**JavaScript 中的所有字符都为 16 位**。\\ 为转移字符,\\u 约定允许指定用数字表示的字符码位。如`\"A\"===\"\\u0041\"`\n\n(这里说下===和==的区别)\n `==`(相等运算法),`===`(严格相等运算符) JavaScript 对象的比较是引用的比较,非值的比较,对象和其本身相等,和其他任何对象不相等。 `===` 首先计算其操作数的值,然后比较,比较过程无任何类型转换。 `==` 如果两个操作数不是同一类型的,则相等运算符进行一些类型转换进行比较。 `==` 这里截取 [JavaScript 相等表格](http://dorey.github.io/JavaScript-Equality-Table)上的的两张图片让大家更为直观的感受下。\n\n\u003cimg src=\"http://paddingme.qiniudn.com/1396461120383-2.png\" alt=\"关于===的相等表格\"\u003e\n\n\u003cimg src=\"http://paddingme.qiniudn.com/1396464279990-1.png\" alt=\"关于==的相等表格\" style=\"width:625px;\"\u003e\n\n引用下[温特大大](http://weibo.com/wintercn)的总结就是:**只要记住 `null` 只和`undefined` 相等,有 `number` 都转 `number`,有 `boolean` 也转 `number`,有 `string` 都转 `string`,对象互相不等,`NaN` 互相不等就可以了**。\n\n字符串一旦创建无法改变,通过 `+` 可以连接字符串形成一个新的字符串。`'c' + 'a' + 't' === 'cat'` 就很好理解了,`'c' + 'a' + 't'`连接后创建了一个新的字符串和 `'cat'` 有着完全相同的字符和字符顺序所以严格相等。\n### 5. 语句\n\nJavascript 依赖于全局变量进行连接,所有编译单元的所有级别对象都被抛入全局对象的公共命名空间中。当 `var` 语句被用在函数的内部时,他定义了这个函数的私有变量。\n`switch`、`while`、`for`、和 `do` ss语句允许一个可选的前置 `label` 配合 `break` 一起使用。\n语句的执行顺序:从上到下。Javascript 可用过条件语句(`if`, `switch`),循环语句(`for`, `while`, `do`),**强制跳转语句(`return`, `break`, `throw`)** 和函数调用来改变执行顺序。\n**`false`, `null`, `undefined`,空字符串 `''`,数字 `0`,数字 `NaN`都为假,其余皆为真。**\n`for` 循环有两种形式,`for(var i=0; i \u003c arr.length,i++){}` 和 `for(i in arr){}`,后者枚举一个对象的所有属性名(或键名),在每次循环中,对象的另一个属性名字付串被复制给 `for` 和 `in` 之间的变量。\n`object.hasOwnProperty(variable)`来检测是否为该对象的成员,还是从原型链里找到的。\n\n``` javascript\nfor(myvar in obj){\n     if(object.hasOwnProperty(myvar)){\n         ...\n     }\n}\n```\n\nJavascript 不允许在 `return` 关键字和表示式之间换行,同样不允许 `break` 关键字和标签之间换行。\n### 6. 表达式\n\n最简单的表达式是字面量值(比如字符串或数字)、变量、内置的值(`true`、`false`、`null`、`undefined`、`NaN` 和 `Infinity`)、以 `new` 前导的调用表达式、以 `delete`前导的属性存取表达式、包在圆括号中的表达式、以一个前缀运算符作为前导的表达式,或者表达式后面跟着:\n- 一个插入运算符与另一个表达式;\n- 三元运算符?后面跟着另一个表达式,然后接一个:,再然后接第 -三个表达式;\n- 一个函数调用;\n- 一个属性存取表达式。\n\n**函数调用引发函数的执行,函数调用运算符是跟随在函数名后面的一对圆括号。**圆括号中可能包含将会传递给这个函数的参数。一个属性存取表达式用于指定一个对象或数组的属性或元素。\n\n下表按从最高到最低的优先级列出 JavaScript 运算符。具有相同优先级的运算符按从左至右的顺序求值。\n\n| 运算符 | 描述 |\n| --- | --- |\n| . []() | 字段访问、数组下标、函数调用以及表达式分组 |\n| ++ -- - ~ ! delete new typeof void | 一元运算符、返回数据类型、对象创建、未定义值 |\n| \\* / % | 乘法、除法、取模 |\n| \\+ - + | 加法、减法、字符串连接 |\n| \u003c\u003c \u003e\u003e \u003e\u003e\u003e | 移位 |\n| \u003c \u003c= \u003e \u003e= instanceof | 小于、小于等于、大于、大于等于、instanceof |\n| == != === !== | 等于、不等于、严格相等、非严格相等 |\n| \u0026 | 按位与 |\n| ^ | 按位异或 |\n| | | 按位或 |\n| \u0026\u0026 | 逻辑与 |\n| || | 逻辑或 |\n| ?: | 条件 |\n| = oP= | 赋值、运算赋值 |\n| , | 多重求值 |\n\n`type of` 运算符产生的值有 'number'、'string'、'boolean'、'undefined'、'function' 和 'object'(注意都是小写)**如果运算数是一个数组或者  `null`,那么结果是 `object`,这是不对的额**这里作何解?\n### 7. 字面量\n\n对象字面量是一种方便指定新对象的表示法。属性名可是标识符或者字符串。数组字面量是一个方便指定新数组的表示法,函数字面量定义了函数值(后续相继详细介绍)。\n","author":{"url":"https://github.com/paddingme","@type":"Person","name":"paddingme"},"datePublished":"2014-12-08T15:20:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/24/Learning-JavaScript/issues/24"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d4729130-ef73-3710-51d6-3f11217ad5eb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE8F8:5592:7107188:9B48AB1:6A5EA970
html-safe-noncef421a9609d5a6d8e16f7a2fc3ddb042c73f217d88cf96d1a8d03327cdc51452f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEY4OjU1OTI6NzEwNzE4ODo5QjQ4QUIxOjZBNUVBOTcwIiwidmlzaXRvcl9pZCI6IjQzMTg5MDI2MDkzNTkzMTczNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace49c4b5d05be9cb6bede49959e0b86a10f7231c16422ee26c12964a2db4c34e8
hovercard-subject-tagissue:51312968
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/paddingme/Learning-JavaScript/24/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71f21940660b23430844caaa03303146281a26fbf0473e57da326d939bbc4300/paddingme/Learning-JavaScript/issues/24
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71f21940660b23430844caaa03303146281a26fbf0473e57da326d939bbc4300/paddingme/Learning-JavaScript/issues/24
og:image:alt1. 空白 空白用来间隔字符序列,这个很好理解。另Javascript 采取两种注释方法块注释/* /和行注释//我们使用//,因为/ */中会偶尔遇到正则表达式的注释会导致错误。 2. 标识符 标识符有一个字母开头,其后可加一个或多个字母、数字或下划线。不允许使用保留字。 undefined , NaN 和 Infinity 却不是保留字。JavaScript 不允许使用保留字来命名参数或...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepaddingme
hostnamegithub.com
expected-hostnamegithub.com
None7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d
turbo-cache-controlno-preview
go-importgithub.com/paddingme/Learning-JavaScript git https://github.com/paddingme/Learning-JavaScript.git
octolytics-dimension-user_id5771087
octolytics-dimension-user_loginpaddingme
octolytics-dimension-repository_id25473884
octolytics-dimension-repository_nwopaddingme/Learning-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id25473884
octolytics-dimension-repository_network_root_nwopaddingme/Learning-JavaScript
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
release2d2ac9bdd71d5f53f2b731c9330677e38624e301
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/paddingme/Learning-JavaScript/issues/24#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpaddingme%2FLearning-JavaScript%2Fissues%2F24
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpaddingme%2FLearning-JavaScript%2Fissues%2F24
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=paddingme%2FLearning-JavaScript
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/24
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/24
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/24
paddingme https://github.com/paddingme
Learning-JavaScripthttps://github.com/paddingme/Learning-JavaScript
Notifications https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Fork 13 https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Star 28 https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Code https://github.com/paddingme/Learning-JavaScript
Issues 30 https://github.com/paddingme/Learning-JavaScript/issues
Pull requests 0 https://github.com/paddingme/Learning-JavaScript/pulls
Actions https://github.com/paddingme/Learning-JavaScript/actions
Projects https://github.com/paddingme/Learning-JavaScript/projects
Wiki https://github.com/paddingme/Learning-JavaScript/wiki
Security and quality 0 https://github.com/paddingme/Learning-JavaScript/security
Insights https://github.com/paddingme/Learning-JavaScript/pulse
Code https://github.com/paddingme/Learning-JavaScript
Issues https://github.com/paddingme/Learning-JavaScript/issues
Pull requests https://github.com/paddingme/Learning-JavaScript/pulls
Actions https://github.com/paddingme/Learning-JavaScript/actions
Projects https://github.com/paddingme/Learning-JavaScript/projects
Wiki https://github.com/paddingme/Learning-JavaScript/wiki
Security and quality https://github.com/paddingme/Learning-JavaScript/security
Insights https://github.com/paddingme/Learning-JavaScript/pulse
【JavaScript】【学习心得】学习 JavaScript 第二十二天https://github.com/paddingme/Learning-JavaScript/issues/24#top
Mu-Help-Planhttps://github.com/paddingme/Learning-JavaScript/issues?q=state%3Aopen%20label%3A%22Mu-Help-Plan%22
https://github.com/paddingme
paddingmehttps://github.com/paddingme
on Dec 8, 2014https://github.com/paddingme/Learning-JavaScript/issues/24#issue-51312968
JavaScript 相等表格http://dorey.github.io/JavaScript-Equality-Table
https://camo.githubusercontent.com/5a9e93f91b461a7e607419effd84b2bfc586da647dbd94eb4568a670c74e2af9/687474703a2f2f70616464696e676d652e71696e6975646e2e636f6d2f313339363436313132303338332d322e706e67
https://camo.githubusercontent.com/1f0cd96bf7054380052b11b05e120916fcd470a7263578ff54b6ab6b23dd8ef3/687474703a2f2f70616464696e676d652e71696e6975646e2e636f6d2f313339363436343237393939302d312e706e67
温特大大http://weibo.com/wintercn
https://github.com/paddingme/Learning-JavaScript/issues/24
Mu-Help-Planhttps://github.com/paddingme/Learning-JavaScript/issues?q=state%3Aopen%20label%3A%22Mu-Help-Plan%22
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.