|1. JavaScript म्हणजे काय?
Chapter 1JavaScript Tutorial~1 min read

JavaScript म्हणजे काय?

Introduction — Why JavaScript?

HTML म्हणजे घराच्या भिंती आणि छत — structure. CSS म्हणजे रंग आणि सजावट — looks. JavaScript म्हणजे घरातील electricity — interaction आणि functionality. JavaScript शिवाय websites static असतात — buttons click केल्यावर काही होत नाही, forms validate होत नाहीत.

JavaScript म्हणजे काय?

JavaScript हे एक lightweight, object-oriented programming language आहे. हे primarily web pages interactive बनवण्यासाठी वापरतात. Animations, pop-ups, form validation, dynamic content — सगळे JavaScript ने होते. File extension: .js

  • Browser मध्ये directly run होते — कोणताही installation नाही
  • Server side पण चालते — Node.js मुळे
  • Popular frameworks: React, Vue, Angular (frontend) | Node.js, Express (backend)
  • जगातील सगळ्यात जास्त वापरल्या जाणाऱ्या programming languages मध्ये #1

ECMAScript म्हणजे काय?

ECMAScript म्हणजे JavaScript चे standardized specification — rules आणि features कसे असावेत याचे blueprint. JavaScript म्हणजे त्याची browser implementation. ES6 (2015) हे major overhaul होते — let, const, arrow functions, classes सगळे ES6 मध्ये आले.

  • ES1 (1997): पहिली release
  • ES6/ES2015: Major update — modern JS चा आधार
  • ES2024: Latest version

JavaScript कुठे Run होते?

  • Browser मध्ये: Chrome, Firefox, Safari — directly run होते, कोणतीही installation नाही
  • Server वर: Node.js द्वारे — backend APIs, databases
  • Desktop apps: Electron framework (VS Code, Slack JavaScript मध्ये बनलेले आहेत!)
  • Mobile apps: React Native मध्ये
💡

Browser मध्ये JavaScript run करणे: F12 दाबा → Console tab → कोणताही JS code टाइप करा आणि Enter दाबा. console.log("नमस्कार!") टाइप करून try करा!

Key Points — लक्षात ठेवा

  • JavaScript = HTML चा electricity — interactivity देतो
  • Lightweight, OOP language — file extension .js
  • Browser + Server (Node.js) दोन्हींवर चालते
  • ECMAScript = specification | JavaScript = implementation
  • ES6 (2015) = modern JavaScript चा turning point
0/13 chapters पूर्ण