Core Code
Core Code Modern Dev Handbook
JAVASCRIPT
Basic JavaScript
JS Tutorial JS Syntax JS Variables JS Operators JS If Conditions JS Loops JS Strings JS Numbers JS Functions JS Objects JS Scope JS Dates JS Temporal Dates JS Arrays JS Sets JS Maps JS Iterations JS Math JS RegExp JS Data Types JS Errors JS Debugging JS Conventions JS References JS ECMAScript 2026 JS Versions
JS HTML
JS HTML DOM JS Events JS Projects
JS Advanced
JS Functions JS Objects JS Classes JS Asynchronous JS Modules JS Meta & Proxy JS Typed Arrays JS DOM Navigation JS Windows JS Web APIs JS AJAX JS JSON JS jQuery JS Graphics Why JavaScript Needs Type Safety
JAVASCRIPT Contents
Basic JavaScript
JS Tutorial JS Syntax JS Variables JS Operators JS If Conditions JS Loops JS Strings JS Numbers JS Functions JS Objects JS Scope JS Dates JS Temporal Dates JS Arrays JS Sets JS Maps JS Iterations JS Math JS RegExp JS Data Types JS Errors JS Debugging JS Conventions JS References JS ECMAScript 2026 JS Versions
JS HTML
JS HTML DOM JS Events JS Projects
JS Advanced
JS Functions JS Objects JS Classes JS Asynchronous JS Modules JS Meta & Proxy JS Typed Arrays JS DOM Navigation JS Windows JS Web APIs JS AJAX JS JSON JS jQuery JS Graphics Why JavaScript Needs Type Safety
JavaScript → JS Conventions

Use Arrow Functions

Arrow functions provide a concise syntax.

Preview

Code

<script>
const add = (a,b) => a + b;

console.log(add(2,3));
</script>

More JS Conventions Examples (7)

example Use CamelCase for Variables open example example Prefer const When Possible open example example Use let Instead of var open example example Use Strict Equality open example example Consistent Indentation open example example Use Descriptive Names open example example Separate Logic into Functions open example
← Use Descriptive Names
Separate Logic into Functions →
Modern Dev Handbook
Production-grade tutorials for modern developers.
Docs
HTML HTML CSS CSS JavaScript JavaScript React React
Backend
Node.js Node.js Python Python Go Go Java Java
Infrastructure
Linux Production Linux Production DevOps DevOps Security Security
Architecture
System Design System Design Distributed Systems Distributed Systems REST API REST API
Resources
About About Contact Contact Privacy Policy Privacy
23 Courses • 1,695 Lessons • 1,958 Examples
© 2026 Core Code