CosmoCode (Formerly TeachMeSelenium)

Setting up environment | JavaScript & Object Oriented Programming | Part 2

In the Previous Tutorial, we learned the following –

In this tutorial we’ll continue that learning and setup our system so that we can learn by doing, instead of reading dull & boring information.

Let’s get started.

Installation

The beauty of JavaScript lies in that it has built-in support for browsers. So we won’t have to install tons of things to make it work.

Google Chrome browser

I’ll be using Google Chrome Browser mainly for its Developer Tools. If you right click over any opened page in Chrome and select Inspect, it opens the Developer Tools either in the lower part of the browser or in the right pane (depending on your local configuration).

We’ll mainly be using its Console tab to play with JavaScript objects and verifying console messages. Want to experiment? Type window in the console and press enter.

Visual Studio Code (VS Code)

Creating folder and files

Writing boilerplate code

console.log('Hello World');
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Object Oriented JS</title>
</head>
<body>
    <script type="text/javascript" src="./myjs.js"></script>
</body>
</html>

Summary

Congratulation!!! We’ve successfully configured our development environment. We did the following setup –

What are you waiting for? Let us join the union of JavaScript & Object Oriented Programming in the Next Tutorial.

Exit mobile version