Skip to content

Latest commit

 

History

History
124 lines (92 loc) · 4.11 KB

lesson1.md

File metadata and controls

124 lines (92 loc) · 4.11 KB

Getting Started

Tools Needed

Setting up VS Code

Open the VSCode extension manager

Download the VSCode extension for

  • Prettier
  • ESLint
  • Javascript(ES6)
  • HTML CSS Support
  • HTML Snippets
  • CSS Snippets
  • Live Server
  • Material Icon Theme
  • Path Intellisense
  • Shades of Purple
  • Quokka.js
  • Quokka Statusbar

Now let's get started

  1. What is JavaScript?

JavaScript is a very powerful client-side scripting language. JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.

  1. What is the difference between JavaScript and Java?

Java is an OOP programming language while JavaScript is an OOP programming script. JavaScript code is written completely in text and need only be interpreted. Java, on the other hand, must be compiled.

JavaScript is a scripting language that is interpreted, meaning that it is not compiled.

  1. History of JavaScript

JavaScript was developed by Brendan Eich in 1995, which appeared in Netscape, a popular browser of that time. The language was initially called LiveScript and was later renamed JavaScript. There are many programmers who think that JavaScript and Java are the same. In fact, JavaScript and Java are very much unrelated. Java is a very complex programming language whereas JavaScript is only a scripting language. The syntax of JavaScript is mostly influenced by the programming language C.

  1. Where does JavaScript run?

JS runs on the web browser. So when a user makes an HTTP request and there is JS in it. It is sent to the web browser to and it's to the browser to execute it.

Keywords

  • client-side
  • server-side
  • web server
  • server
  • dynamically typed language
  • statically typed language
  1. What is a web server?

The main job of a web server is to display website content through storing, processing and delivering webpages to users. Besides HTTP, web servers also support SMTP (Simple Mail Transfer Protocol) and FTP (File Transfer Protocol), used for email, file transfer and storage.

  1. What is a server?

A server is a computer or system that provides resources, data, services, or programs to other computers, known as clients, over a network.

  1. What is a client/ client-side?

In web development, 'client side' refers to everything in a web application that is displayed or takes place on the client (end user device). This includes what the user sees, such as text, images, and the rest of the UI, along with any actions that an application performs within the user's browser.

  1. Why is JavaScript a dynamically typed language?
  • It is because you are not required to specify/define the type of variables and functions.
  • It means the type of the variable or function can be changed after it has been defined/specified.
  • It also means that you can use the same variable or function name for different types of variables or functions.
  • It also means type checking is not required. and it's done at run time.

Examples of dynamically typed languages

  • JavaScript
  • TypeScript
  • Dart
  • Swift
  • Kotlin
  • Php
  • Python
  1. Statically typed This means type checking is required. and it happens at compile time. Examples of statically typed languages:
  • Java
  • C#
  • C++
  • C

Type Checking Type checking is a process of verifying the type of a variable or function. It is done at compile time.

Getting into Code

  • Our First Simple Javascript Program

  1. Data types
  2. Strings
  3. Arrays
  4. Arithmetic Operations

Projects

  • Purchase app
  • Counter app
  • Calculator app
  • Registration Form