|
24 | 24 |
|
25 | 25 | अलग-अलग इंजनों के अलग-अलग "कोडनेम" होते हैं। उदाहरण के लिए:
|
26 | 26 |
|
27 |
| -- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- in Chrome and Opera. |
28 |
| -- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- in Firefox. |
29 |
| -- ...There are other codenames like "Trident" and "Chakra" for different versions of IE, "ChakraCore" for Microsoft Edge, "Nitro" and "SquirrelFish" for Safari, etc. |
| 27 | +- [V8](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) -- क्रोम (Chrome) और ओपेरा (Opera) में। |
| 28 | +- [SpiderMonkey](https://en.wikipedia.org/wiki/SpiderMonkey) -- फ़ायरफ़ॉक्स (Firefox) में। |
| 29 | +- ...IE के विभिन्न संस्करणों के लिए "ट्राइडेंट" (Trident) और "चक्र" (Chakra) जैसे अन्य कोडनेम हैं, माइक्रोसॉफ्ट एज के लिए "चक्रकोर" (ChakraCore), "नाइट्रो" (Nitro) और सफारी के लिए "स्क्विरफेलिश" (SquirrelFish) आदि। |
30 | 30 |
|
31 |
| -The terms above are good to remember because they are used in developer articles on the internet. We'll use them too. For instance, if "a feature X is supported by V8", then it probably works in Chrome and Opera. |
| 31 | +उपरोक्त शब्द याद रखने के लिए अच्छे हैं क्योंकि इनका उपयोग इंटरनेट पर डेवलपर लेखों में किया जाता है। हम भी उनका उपयोग करेंगे। उदाहरण के लिए, यदि "एक सुविधा X V8 द्वारा समर्थित है", तो यह शायद क्रोम और ओपेरा में काम करता है। |
32 | 32 |
|
33 | 33 | ```smart header="How do engines work?"
|
34 | 34 |
|
35 |
| -Engines are complicated. But the basics are easy. |
| 35 | +इंजन जटिल हैं। लेकिन मूल बातें आसान हैं। |
36 | 36 |
|
37 |
| -1. The engine (embedded if it's a browser) reads ("parses") the script. |
38 |
| -2. Then it converts ("compiles") the script to the machine language. |
39 |
| -3. And then the machine code runs, pretty fast. |
| 37 | +1. इंजन (एम्बेडेड अगर यह एक ब्राउज़र है) स्क्रिप्ट पढ़ता है (parse)। |
| 38 | +2. फिर यह मशीन भाषा के लिए स्क्रिप्ट ("संकलन") को परिवर्तित करता है (compile)। |
| 39 | +3. और फिर मशीन कोड चलता है, (बहुत तेज)। |
40 | 40 |
|
41 |
| -The engine applies optimizations at each step of the process. It even watches the compiled script as it runs, analyzes the data that flows through it, and further optimizes the machine code based on that knowledge. |
| 41 | +इंजन प्रक्रिया के प्रत्येक चरण में अनुकूलन (Optimisation) लागू करता है। यह संकलित (complied) स्क्रिप्ट को भी देखता है, इसके माध्यम से बहने वाले डेटा का विश्लेषण करता है, और आगे उस ज्ञान के आधार पर मशीन कोड का आगे अनुकूलन करता है। |
42 | 42 | ```
|
43 | 43 |
|
44 |
| -## What can in-browser JavaScript do? |
| 44 | +## एक ब्राउज़र में जावास्क्रिप्ट क्या कर सकता है? |
45 | 45 |
|
46 |
| -Modern JavaScript is a "safe" programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it. |
| 46 | +आधुनिक जावास्क्रिप्ट एक "सुरक्षित" प्रोग्रामिंग भाषा है। यह मेमोरी या सीपीयू तक निम्न-स्तरीय पहुंच प्रदान नहीं करता है, क्योंकि यह शुरू में उन ब्राउज़रों के लिए बनाया गया था जिन्हें इसकी आवश्यकता नहीं है। |
47 | 47 |
|
48 |
| -JavaScript's capabilities greatly depend on the environment it's running in. For instance, [Node.js](https://wikipedia.org/wiki/Node.js) supports functions that allow JavaScript to read/write arbitrary files, perform network requests, etc. |
| 48 | +जावास्क्रिप्ट की क्षमताएं बहुत हद तक उस वातावरण पर निर्भर करती हैं, जिसमें वह चल रहा है. उदाहरण के लिए, [Node.js] (https://wikipedia.org/wiki/Node.js) ऐसे कार्यों का समर्थन करता है जो जावास्क्रिप्ट को मनमाने ढंग से फाइल पढ़ने / लिखने, नेटवर्क अनुरोध करने, आदि की अनुमति देता है। |
49 | 49 |
|
50 | 50 | In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.
|
51 | 51 |
|
@@ -113,8 +113,8 @@ Examples of such languages:
|
113 | 113 |
|
114 | 114 | There are more. Of course, even if we use one of transpiled languages, we should also know JavaScript to really understand what we're doing.
|
115 | 115 |
|
116 |
| -## Summary |
| 116 | +## सारांश |
117 | 117 |
|
118 |
| -- JavaScript was initially created as a browser-only language, but is now used in many other environments as well. |
119 |
| -- Today, JavaScript has a unique position as the most widely-adopted browser language with full integration with HTML/CSS. |
120 |
| -- There are many languages that get "transpiled" to JavaScript and provide certain features. It is recommended to take a look at them, at least briefly, after mastering JavaScript. |
| 118 | +- जावास्क्रिप्ट को शुरुआत में केवल ब्राउज़र-भाषा के रूप में बनाया गया था, लेकिन अब इसे कई अन्य वातावरणों में भी उपयोग किया जाता है। |
| 119 | +- आज, जावास्क्रिप्ट HTML / CSS के साथ पूर्ण एकीकरण के साथ सबसे व्यापक रूप से अपनाया जाने वाला एक अद्वितीय ब्राउज़र-भाषा है। |
| 120 | +- कई भाषाएं हैं जो जावास्क्रिप्ट में "transpiled" (किसी अन्य भाषा में अनुवाद करने की प्रक्रिया) होती हैं और कुछ विशेषताएं प्रदान करती हैं।जावास्क्रिप्ट पर महारत हासिल करने के बाद, कम से कम संक्षेप में उन पर एक नज़र डालने की सलाह दी जाती है। |
0 commit comments