Dit artikel heeft een redactionele beoordeling nodig. Hoe u kunt helpen.
Deze vertaling is niet volledig. Help dit artikel te vertalen vanuit het Engels.
JavaScript (JS) is een lichtgewicht, geïnterpreteerde programmeertaal met eersteklas functies. Hoewel het beste bekend als de scripttaal voor web pagina's, wordt het ook door vele niet-browser omgevingen gebruikt, zoals node.js en Apache CouchDB. JS is een prototype-gebaseed, multi-paradigma, dynamische scripttaal, welke object-georienteerde, imperatieve, en functionele programmeerstijlen ondersteunt. Lees meer over JavaScript.
Deze sectie van de site is toegewijd aan de JavaScript taal zelf, en niet de delen die specifiek zijn voor webpagina's of andere omgevingen. Voor informatie over APIs die specifiek zijn voor webpagina's, kijk alsjeblieft op Web APIs en DOM.
De standaard voor JavaScript is ECMAScript. Met de ingang van 2012, ondersteunen alle moderne browsers volledig ECMAScript 5.1. Op 17 juni 2015, publiceerde ECMA International de zesde hoofdversie (major version) van ECMAScript, dit heet officieel ECMAScript 2015, en wordt in het algemeen vaker aangeduid als ECMAScript 6 of ES6. Sindsdien worden de ECMAScript standaarden op jaarlijkse basis vrijgegeven. Deze documentatie verwijst naar de laatste ontwerpversie (draft version), dat momenteel ECMAScript 2017 is.
Verwar JavaScript niet met de Java programmertaal. Beiden "Java" and "JavaScript" zijn handelsmerken of geregistreerde handelsmerken van Oracle in de VS en andere landen. Daarentegen hebben de twee programmeertalen hele verschillende syntaxis, semantiek en toepassingen.
Tutorials
Leer hoe je kan programmeren in JavaScript door middel van gidsen en tutorials.
Inleidende artikelen
- JavaScript Guide
- Als JavaScript nieuw voor u is, zal deze gids je begeleiden door de taal.
- JavaScript technologies overview
- Introductie over het landschap van JavaScript in een webbrowser.
- Introduction to Object Oriented JavaScript
- Introduction to the concepts of object oriented programming in JavaScript.
Intermediate
- A re-introduction to JavaScript
- An overview for those who think they know about JavaScript.
- JavaScript data structures
- Overview of available data structures in JavaScript.
- Equality comparisons and sameness
- JavaScript provides three different value-comparison operations: strict equality using
===, loose equality using==, and theObject.is()method.
Advanced
- Inheritance and the prototype chain
- Explanation of the widely misunderstood and under-estimated prototype-based inheritance.
- Strict mode
- A restricted variant of JavaScript, for faster performance and easier debugging.
- JavaScript typed arrays
- JavaScript typed arrays provide a mechanism for accessing raw binary data.
- Memory Management
- Memory life cycle and garbage collection in JavaScript.
- Concurrency model and Event Loop
- JavaScript has a concurrency model based on an "event loop".
Referenties
Surf door de complete JavaScript referentie documentatie.
- Standard objects
- Get to know standard built-in objects
Array,Boolean,Date,Error,Function,JSON,Math,Number,Object,RegExp,String,Map,Set,WeakMap,WeakSet, and others. - Expressions and operators
- Learn more about the behavior of JavaScript's operators
instanceof,typeof,new,this, the operator precedence, and more. - Statements and declarations
- Learn how
do-while,for-in,for-of,try-catch,let,var,const,if-else,switch, and more JavaScript statements and keywords work. - Functions
- Learn how to work with JavaScript's functions to develop your applications.
Tools & resources
Helpful tools for writing and debugging your JavaScript code.
- Firefox Developer Tools
- Scratchpad, Web Console, JavaScript Profiler, Debugger, and more.
- Firebug
- Edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
- JavaScript Shells
- A JavaScript shell allows you to quickly test snippets of JavaScript code.
- TogetherJS
- Collaboration made easy.
- Stack Overflow
- Stack Overflow questions tagged with "JavaScript".
- JavaScript versions and release notes
- Browse JavaScript's feature history and implementation status.
- JSFiddle
- Edit JavaScript, CSS, HTML and get live results. Use external resources and collaborate with your team online.
Join the JavaScript community
- IRC: #js (learn more)
- ES discuss: esdiscuss.org
- SpiderMonkey: Project page
- Twitter: @SpiderMonkeyJS