جافا سكريبت (JavaScript®) (أو كما يشيع اختصارها JS) هي لغة برمجة خفيفة ومفسرة وكائنية التوجه ذات دوال من الدرجة الأولى، وهي مشهورة خصوصا بكونها لغة البرمجة النصية لصفحات الوب، لكنها تستعمل في بيئات أخرى غير المتصفحات مثل node.js أو Apache CouchDB. إنها لغة برمجة نصية ديناميكية مبنية عل النماذج و متعددة النماذج، وهي تدعم نمطي البرمجة الحتمي والوظيفي. اقرأ المزيد عن جافا سكريبت.
The JavaScript standard is called ECMAScript. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. On June 17, 2015, the sixth major version of ECMAScript was published. This version is officially called ECMAScript 2015, but is commonly referred to as ECMAScript 6 or ES6. The documentation we present covers ECMAScript 6 and we've already begun to cover the early bits of ECMAScript 7.
This section of the site is dedicated to the JavaScript language itself, the parts that are not specific to Web pages, or other host environments. For information about {{Glossary("API","APIs")}} specific to Web pages, please see Web APIs and DOM.
JavaScript is not to be confused with the Java programming language. Java is a trademark or registered trademark of Oracle in the U.S. and other countries.
Tutorials
Learn how to program with JavaScript with our guides and tutorials.
Introductory
- JavaScript Guide
- If you are new to JavaScript, this guide will walk you through the language.
- JavaScript technologies overview
- Introduction to the web browser JavaScript landscape.
- 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 the {{jsxref("Global_Objects/Object/is", "Object.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.
- 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".
Reference
Browse the complete JavaScript reference documentation.
- Standard objects
- Get to know standard built-in objects {{jsxref("Array")}}, {{jsxref("Boolean")}}, {{jsxref("Date")}}, {{jsxref("Error")}}, {{jsxref("Function")}}, {{jsxref("JSON")}}, {{jsxref("Math")}}, {{jsxref("Number")}}, {{jsxref("Object")}}, {{jsxref("RegExp")}}, {{jsxref("String")}}, {{jsxref("Map")}}, {{jsxref("Set")}}, {{jsxref("WeakMap")}} , {{jsxref("WeakSet")}}, and others.
- Expressions and operators
- Learn more about the behavior of JavaScript's operators {{jsxref("Operators/instanceof", "instanceof")}}, {{jsxref("Operators/typeof", "typeof")}}, {{jsxref("Operators/new", "new")}}, {{jsxref("Operators/this", "this")}}, the operator precedence, and more.
- Statements and declarations
- Learn how {{jsxref("Statements/do...while", "do-while")}}, {{jsxref("Statements/for...in", "for-in")}}, {{jsxref("Statements/for...of", "for-of")}}, {{jsxref("Statements/try...catch", "try-catch")}}, {{jsxref("Statements/let", "let")}}, {{jsxref("Statements/var", "var")}}, {{jsxref("Statements/const", "const")}}, {{jsxref("Statements/if...else", "if-else")}}, {{jsxref("Statements/switch", "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 while 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.
{{CommunityBox("JavaScript", "js-engine.internals", "mozilla.dev.tech.js-engine.internals", "js", "ES discuss|https://esdiscuss.org/|esdiscuss.org|ECMAScript standard discussion mailing list||SpiderMonkey|https://wiki.mozilla.org/JavaScript|Project page|Contribute to the JavaScript Engine||Twitter|https://twitter.com/SpiderMonkeyJS|@SpiderMonkeyJS|SpiderMonkey updates on Twitter")}}