Every language comes with it’s unique set of features.
Javascript has the following -
JavaScript is an interpreted language, meaning it's executed line-by-line at runtime by the JavaScript engine in the browser or server environment, rather than being compiled into machine code beforehand.
Upsides -
Downsides -
Variables in JavaScript are not bound to a specific data type. Types are determined at runtime and can change as the program executes
#include <iostream>
int main() {
int a = 1;
a = "hello";
a = true;
}
var a = 1;
a = "harkirat";
a = true;
console.log(a)
JavaScript executes code in a single-threaded environment, meaning it processes one task at a time. We will dive deeper into this next week.