Город МОСКОВСКИЙ
00:08:10

Browser vs Node.js | JavaScript Runtime | Node.js

Аватар
JavaScript Master
Просмотры:
27
Дата загрузки:
29.11.2023 07:52
Длительность:
00:08:10
Категория:
Технологии и интернет

Описание

In this #video, I talk about multiple ways to run JavaScript programs. JavaScript initially was made for the web; hence it is a first-class programming language on the browser. However, the introduction of nodejs opens the door to run on the server like Java, C#, etc. That said, we have two different runtime environments for one language, i.e., #browser & #node.

Timecodes:

?? 0:00 - Video starts
?? 0:05 - Multiple runtimes for JavaScript i,e browser & node
?? 1:25 - Difference in the API or modules available in both runtimes
?? 3:20 - Global vs window object
?? 3:50 - Controlling runtime versions for node (can control) vs browser runtime (can't control)
?? 5:25 - Importing external modules in the node (with require keyword) vs browser (with import
keyword). It's more of a CommonJS vs ES Modules

Note: I will cover module systems in a separate video.

If you found the content is helpful, please subscribe, leave a comment, and hit the like & notification

Online Resources:

Node REPL: https://nodejs.org/api/repl.html
Lodash: https://lodash.com/

About Me:

Hi, I'm Shree ??
I'm a Teaching Consultant turned Software Engineer, working in diverse roles from start-ups to enterprises. I love exploring technology and building cloud-native SaaS software. I believe in learning while sharing is a continuous process. I will continue posting videos on weekly basis on this channel while I'm exploring full-stack software development on AWS.

Connect with me:
? Twitter: https://twitter.com/shree_ooo
? LinkedIn: https://www.linkedin.com/in/shree-ooo/
? GitHub: https://github.com/shree-ooo
? Personal website: https://shree.ooo

Рекомендуемые видео