| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:da6e13f8-e757-a101-e210-cff166bc235f |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DDCE:301E01:473540:625DC9:6AF65F21 |
| html-safe-nonce | 2d5a7b39979d6cf845dd3d915da3e9936a25aa063db8f2e45e1af3846af8399d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERENFOjMwMUUwMTo0NzM1NDA6NjI1REM5OjZBRjY1RjIxIiwidmlzaXRvcl9pZCI6Ijc4NTI4NjU2MzExMDYyNjA3NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c561313c9b93178336a55a8c6d0fb8c18ed7661da0228ff238db33252fa3384 |
| hovercard-subject-tag | repository:40894257 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/yieldmo/style-guide/tree/master/javascript |
| twitter:image | https://opengraph.githubassets.com/167dcbc5c53572b8fb821c9d2bf2199be4c8740e97249fb70630256dbfd8f667/yieldmo/style-guide |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/167dcbc5c53572b8fb821c9d2bf2199be4c8740e97249fb70630256dbfd8f667/yieldmo/style-guide |
| og:image:alt | Style guide for (and by) the frontend engineers @ Yieldmo. Includes JS and CSS style guidance. - yieldmo/style-guide |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fded9ab97d594702a6a4ebcef0ee4f94c91fb16da7c62cac91ee0125e9c2d58c |
| turbo-cache-control | no-cache |
| go-import | github.com/yieldmo/style-guide git https://github.com/yieldmo/style-guide.git |
| octolytics-dimension-user_id | 6540368 |
| octolytics-dimension-user_login | yieldmo |
| octolytics-dimension-repository_id | 40894257 |
| octolytics-dimension-repository_nwo | yieldmo/style-guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40894257 |
| octolytics-dimension-repository_network_root_nwo | yieldmo/style-guide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39cd7745159797c426e62ba2199c584d653d4b32 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/yieldmo/style-guide/tree/master/javascript#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fyieldmo%2Fstyle-guide%2Ftree%2Fmaster%2Fjavascript |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fyieldmo%2Fstyle-guide%2Ftree%2Fmaster%2Fjavascript |
| 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%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=yieldmo%2Fstyle-guide |
| Reload | https://github.com/yieldmo/style-guide/tree/master/javascript |
| Reload | https://github.com/yieldmo/style-guide/tree/master/javascript |
| Reload | https://github.com/yieldmo/style-guide/tree/master/javascript |
| yieldmo | https://github.com/yieldmo |
| style-guide | https://github.com/yieldmo/style-guide |
| Code | https://github.com/yieldmo/style-guide |
| Issues1 (1) | https://github.com/yieldmo/style-guide/issues |
| Pull requests2 (2) | https://github.com/yieldmo/style-guide/pulls |
| Actions | https://github.com/yieldmo/style-guide/actions |
| Projects | https://github.com/yieldmo/style-guide/projects |
| Wiki | https://github.com/yieldmo/style-guide/wiki |
| Security and quality | https://github.com/yieldmo/style-guide/security |
| Insights | https://github.com/yieldmo/style-guide/pulse |
| https://github.com/yieldmo/style-guide |
| style-guide | https://github.com/yieldmo/style-guide/tree/master |
| History | https://github.com/yieldmo/style-guide/commits/master/javascript |
| https://github.com/yieldmo/style-guide/commits/master/javascript |
| style-guide | https://github.com/yieldmo/style-guide/tree/master |
| .. | https://github.com/yieldmo/style-guide/tree/master |
| README.md | https://github.com/yieldmo/style-guide/blob/master/javascript/README.md |
| README.md | https://github.com/yieldmo/style-guide/blob/master/javascript/README.md |
| README.md | https://github.com/yieldmo/style-guide/tree/master/javascript#readme |
| https://github.com/yieldmo/style-guide/tree/master/javascript#yieldmo-javascript-style-guide- |
| For the ES6-inclusive guide click here | https://github.com/yieldmo/style-guide/blob/master/es6 |
| https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| Types | https://github.com/yieldmo/style-guide/tree/master/javascript#types |
| Objects | https://github.com/yieldmo/style-guide/tree/master/javascript#objects |
| Arrays | https://github.com/yieldmo/style-guide/tree/master/javascript#arrays |
| Strings | https://github.com/yieldmo/style-guide/tree/master/javascript#strings |
| Functions | https://github.com/yieldmo/style-guide/tree/master/javascript#functions |
| Properties | https://github.com/yieldmo/style-guide/tree/master/javascript#properties |
| Variables | https://github.com/yieldmo/style-guide/tree/master/javascript#variables |
| Hoisting | https://github.com/yieldmo/style-guide/tree/master/javascript#hoisting |
| Comparison Operators & Equality | https://github.com/yieldmo/style-guide/tree/master/javascript#comparison-operators--equality |
| Blocks | https://github.com/yieldmo/style-guide/tree/master/javascript#blocks |
| Comments | https://github.com/yieldmo/style-guide/tree/master/javascript#comments |
| Whitespace | https://github.com/yieldmo/style-guide/tree/master/javascript#whitespace |
| Commas | https://github.com/yieldmo/style-guide/tree/master/javascript#commas |
| Semicolons | https://github.com/yieldmo/style-guide/tree/master/javascript#semicolons |
| Type Casting & Coercion | https://github.com/yieldmo/style-guide/tree/master/javascript#type-casting--coercion |
| Naming Conventions | https://github.com/yieldmo/style-guide/tree/master/javascript#naming-conventions |
| Accessors | https://github.com/yieldmo/style-guide/tree/master/javascript#accessors |
| Constructors | https://github.com/yieldmo/style-guide/tree/master/javascript#constructors |
| Events | https://github.com/yieldmo/style-guide/tree/master/javascript#events |
| Modules | https://github.com/yieldmo/style-guide/tree/master/javascript#modules |
| jQuery | https://github.com/yieldmo/style-guide/tree/master/javascript#jquery |
| ECMAScript 5 Compatibility | https://github.com/yieldmo/style-guide/tree/master/javascript#ecmascript-5-compatibility |
| Testing | https://github.com/yieldmo/style-guide/tree/master/javascript#testing |
| Performance | https://github.com/yieldmo/style-guide/tree/master/javascript#performance |
| Resources | https://github.com/yieldmo/style-guide/tree/master/javascript#resources |
| In the Wild | https://github.com/yieldmo/style-guide/tree/master/javascript#in-the-wild |
| Translation | https://github.com/yieldmo/style-guide/tree/master/javascript#translation |
| The JavaScript Style Guide Guide | https://github.com/yieldmo/style-guide/tree/master/javascript#the-javascript-style-guide-guide |
| Chat With Us About Javascript | https://github.com/yieldmo/style-guide/tree/master/javascript#chat-with-us-about-javascript |
| Contributors | https://github.com/yieldmo/style-guide/tree/master/javascript#contributors |
| License | https://github.com/yieldmo/style-guide/tree/master/javascript#license |
| https://github.com/yieldmo/style-guide/tree/master/javascript#types |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#objects |
| reserved words | http://es5.github.io/#x7.6.1 |
| More info | https://github.com/airbnb/javascript/issues/61 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#arrays |
| jsPerf | http://jsperf.com/converting-arguments-to-an-array/7 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#strings |
| jsPerf | http://jsperf.com/ya-string-concat |
| Discussion | https://github.com/airbnb/javascript/issues/40 |
| jsPerf | http://jsperf.com/string-vs-array-concat/2 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#functions |
| Read ECMA-262's note on this issue | http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=97 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#properties |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#variables |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#hoisting |
| JavaScript Scoping & Hoisting | http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting |
| Ben Cherry | http://www.adequatelygood.com/ |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#comparison-operators--equality |
| Truth Equality and JavaScript | http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#blocks |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#comments |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#whitespace |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#commas |
| source | http://es5.github.io/#D |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#semicolons |
| Read more | http://stackoverflow.com/a/7365214/1712802 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#type-casting--coercion |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#naming-conventions |
| http://kangax.github.io/nfe/ | http://kangax.github.io/nfe/ |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#accessors |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#constructors |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#events |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#modules |
| Explanation | https://github.com/airbnb/javascript/issues/44#issuecomment-13063933 |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#ecmascript-5-compatibility |
| Kangax | https://twitter.com/kangax/ |
| compatibility table | http://kangax.github.com/es5-compat-table/ |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#testing |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#performance |
| On Layout & Web Performance | http://kellegous.com/j/2013/01/26/layout-performance/ |
| String vs Array Concat | http://jsperf.com/string-vs-array-concat/2 |
| Try/Catch Cost In a Loop | http://jsperf.com/try-catch-in-loop-cost |
| Bang Function | http://jsperf.com/bang-function |
| jQuery Find vs Context, Selector | http://jsperf.com/jquery-find-vs-context-sel/13 |
| innerHTML vs textContent for script text | http://jsperf.com/innerhtml-vs-textcontent-for-script-text |
| Long String Concatenation | http://jsperf.com/ya-string-concat |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#resources |
| Annotated ECMAScript 5.1 | http://es5.github.com/ |
| JSHint | http://www.jshint.com/ |
| Airbnb Style .jshintrc | https://github.com/airbnb/javascript/blob/master/linters/jshintrc |
| JSCS | https://github.com/jscs-dev/node-jscs |
| Airbnb Style Preset | https://github.com/jscs-dev/node-jscs/blob/master/presets/airbnb.json |
| Google JavaScript Style Guide | http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml |
| jQuery Core Style Guidelines | http://docs.jquery.com/JQuery_Core_Style_Guidelines |
| Principles of Writing Consistent, Idiomatic JavaScript | https://github.com/rwldrn/idiomatic.js/ |
| JavaScript Standard Style | https://github.com/feross/standard |
| Naming this in nested functions | https://gist.github.com/4135065 |
| Conditional Callbacks | https://github.com/airbnb/javascript/issues/52 |
| Popular JavaScript Coding Conventions on Github | http://sideeffect.kr/popularconvention/#javascript |
| Multiple var statements in JavaScript, not superfluous | http://benalman.com/news/2012/05/multiple-var-statements-javascript/ |
| Understanding JavaScript Closures | http://javascriptweblog.wordpress.com/2010/10/25/understanding-javascript-closures/ |
| Basic JavaScript for the impatient programmer | http://www.2ality.com/2013/06/basic-javascript.html |
| You Might Not Need jQuery | http://youmightnotneedjquery.com/ |
| ES6 Features | https://github.com/lukehoban/es6features |
| Frontend Guidelines | https://github.com/bendc/frontend-guidelines |
| JavaScript: The Good Parts | http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742 |
| JavaScript Patterns | http://www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752 |
| Pro JavaScript Design Patterns | http://www.amazon.com/JavaScript-Design-Patterns-Recipes-Problem-Solution/dp/159059908X |
| High Performance Web Sites: Essential Knowledge for Front-End Engineers | http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309 |
| Maintainable JavaScript | http://www.amazon.com/Maintainable-JavaScript-Nicholas-C-Zakas/dp/1449327680 |
| JavaScript Web Applications | http://www.amazon.com/JavaScript-Web-Applications-Alex-MacCaw/dp/144930351X |
| Pro JavaScript Techniques | http://www.amazon.com/Pro-JavaScript-Techniques-John-Resig/dp/1590597273 |
| Smashing Node.js: JavaScript Everywhere | http://www.amazon.com/Smashing-Node-js-JavaScript-Everywhere-Magazine/dp/1119962595 |
| Secrets of the JavaScript Ninja | http://www.amazon.com/Secrets-JavaScript-Ninja-John-Resig/dp/193398869X |
| Human JavaScript | http://humanjavascript.com/ |
| Superhero.js | http://superherojs.com/ |
| JSBooks | http://jsbooks.revolunet.com/ |
| Third Party JavaScript | http://manning.com/vinegar/ |
| Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript | http://amzn.com/0321812182 |
| Eloquent JavaScript | http://eloquentjavascript.net |
| You Don't Know JS | https://github.com/getify/You-Dont-Know-JS |
| DailyJS | http://dailyjs.com/ |
| JavaScript Weekly | http://javascriptweekly.com/ |
| JavaScript, JavaScript... | http://javascriptweblog.wordpress.com/ |
| Bocoup Weblog | http://weblog.bocoup.com/ |
| Adequately Good | http://www.adequatelygood.com/ |
| NCZOnline | http://www.nczonline.net/ |
| Perfection Kills | http://perfectionkills.com/ |
| Ben Alman | http://benalman.com/ |
| Dmitry Baranovskiy | http://dmitry.baranovskiy.com/ |
| Dustin Diaz | http://dustindiaz.com/ |
| nettuts | http://net.tutsplus.com/?s=javascript |
| JavaScript Jabber | http://devchat.tv/js-jabber/ |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript#the-javascript-style-guide-guide |
| Reference | https://github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide |
| https://github.com/yieldmo/style-guide/tree/master/javascript#chat-with-us-about-javascript |
| gitter | https://gitter.im/airbnb/javascript |
| https://github.com/yieldmo/style-guide/tree/master/javascript#contributors |
| View Contributors | https://github.com/airbnb/javascript/graphs/contributors |
| https://github.com/yieldmo/style-guide/tree/master/javascript#license |
| ⬆ back to top | https://github.com/yieldmo/style-guide/tree/master/javascript#table-of-contents |
| https://github.com/yieldmo/style-guide/tree/master/javascript |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |