JavaScript

In Past class session we are learning a lot about docker. Not just docker but also how it work with Java & JavaScript. Today I am going to introduce JavaScript and how it work in docker. So let’s start what’s different between Java and Java script. So Java applications are run in a virtual machine or web browser while JavaScript is run on a web browser. Java code is compiled whereas while JavaScript code is in text and in a web page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.

Do not confuse JavaScript with the java programming language . Both “Java” and “JavaScript” are trademarks or registered trademarks of Oracle in the U.S. and others countries. However, the two programming languages have a very different syntax, semantic, and use.

JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class function While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.jsApache and Adobe. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. The Docker  platform allows developers to package and run applications as containers. A container is an isolated process that runs on a shared operating system, offering a lighter weight alternative to virtual machines. Though containers are not new, they offer benefits — including process isolation and environment standardization — that are growing in importance as more developers use distributed application architectures.

  • JavaScript is used in Web Application Development. Some of the examples are -NetFlix, Facebook, Uber, LinkedIn etc.
  • JavaScript is used in Mobile Application Development. Some of the examples are- Spotify, Instagram, Facebook, Skype, Uber etc.
  • JavaScript is used in Game Development. Let’s see some games where JavaScript is used- Angry birds, Candy Crush ,Systems Offline, Re-wire, Offline Paradise etc.

Runnig JS code in browser: A good way to learn JavaScript is to run it in browser’s JavaScript console. Just open your favorite browser and press F12 key or Ctrl + Shift + I on your keyboard.You will see something like this on the screen now click on the console tab which I marked. And thats your plaground, yes you heard me correct you can write javascript code here. Lets write our legendary program here and see.You will see something like this on the screen now click on the console tab which I marked. And thats your plaground, yes you heard me correct you can write javascript code here. Lets write our legendary program here and see.

here is link to instruction on How To Build a Node.is Application with Docker.

https://www.digitalocean.com/community/tutorials/how-to-build-a-node-js-application-with-docker

https://www.oreilly.com/library/view/javascript-the-definitive/9781491952016/ch01.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: