JavaScript® (ตัวย่อ JS) เป็นภาษาคอมพิวเตอร์ ชนิด interpretor (แปลทีละบรรทัด) ที่มีขนาดเล็ก และมีคุณสมบัติ first-class functions รู้จักกันดีโดยทั่วไปว่าเป็นภาษาสำหรับหน้าเวป มีการนำไปใช้ใน สภาพแวดล้อมอื่นที่ไม่ใช่เวป เช่นกัน เช่น node.js หรือ Apache CouchDB เป็นภาษาแบบ prototype-based, multi-paradigm, dynamic scripting สนับสนุนสไตล์การเชียนแบบ object-oriented, imperative และ functional อ่านเพิ่มเติม
ส่วนนี้ของเวปไซท์มีไว้สำหรับภาษา JavaScript โดยเฉพาะ ซึ่งเป็นส่วนของเนื้อหาที่ไม่เฉพาะเจาะจงกับการเขียนหน้าเวป หรือ สภาพแวดล้อมอื่นๆ ที่เลือกใช้ สำหรับเนื้อหาเกี่ยวกับ APIs สำหรับการเขียนเวปโดยตรงนั้นสามารถดูได้ที่ Web APIs และ DOM
มาตรฐานของ JavaScript คือ ECMAScript นับตั้งแต่ปี 2012 เป็นต้นมา browser ยุคใหม่ทั้งหมดล้วนรองรับการทำงานตามมาตรฐาน ECMAScript 5.1 อย่างสมบูรณ์ ในขณะที่ browser ที่เก่ากว่านั้นจะรองรับ ECMAScript 3 เป็นอย่างน้อย ในวันที่ 17 มิถุนายน 2015 ECMA International ได้ตีพิมพ์มาตรฐานลำดับที่ 6 ของ ECMAScript ซึ่งมีชื่อเรียกอย่างเป็นทางการว่า ECMAScript 2015 แต่เป็นที่รู้จักโดยทั่วไปว่า ECMAScript 6 หรือ ES6 เอกสารนี้ครอบคลุมถึง ECMAScript 6 และคุณสมบัติบางประการที่จะปรากฏใน ECMAScript รุ่นถัดไป (ES2016).
อย่าสับสน JavaScript กับ ภาษา Java ซึ่งเป็น ตราสินค้าจดทะเบียน ของบริษัท Oracle ในสหรัฐอเมริกา และประเทศอื่นๆ
Tutorials
Learn how to program with JavaScript.
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
===and loose equality using==.
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.
Reference
Browse the complete JS reference documentation.
- Standard objects
- Get to know standard built-in objects
,ArrayBoolean,Date,Error,Function,JSON,Math,Number,Object,RegExp,String,Map,Set,,WeakMapWeakSet, and others. - Expressions & operators
- Learn more about the behavior of JavaScript's operators
instanceof,typeof,new,this, and more. - Statements & 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 JS 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.
Join the JavaScript community
- IRC: #js (learn more)
- ES discuss: esdiscuss.org
- SpiderMonkey: Project page
- Twitter: @SpiderMonkeyJS

