Javascript TutorialJavascript Data TypesData Types in JavascriptJavaScript is a dynamically typed language. This means that you don't have to specify the data type of a variable when you declare it. The data type of the variable is determined automatically when the program is being processed. javascript data types are divided into two types:Primitive data typesNon primitive data typesPrimitive data typesundefined: represents a variable that has not been assigned a value.null: represents a deliberate non-value.boolean: represents a logical value true or false.number: represents a numerical value.string: represents a sequence of characters.As a example:let myVariable; // undefinedlet myNullVariable = null; // nulllet myBooleanVariable = true; // booleanlet myNumberVariable = 5; // numberlet myStringVariable = "Hello"; // stringNon primitive data typesobject: represents a collection of related data and/or functionality.As an example:let myObject = {}; // empty objectlet myArray = []; // empty array (which is also an object)let myFunction = function () {}; // function (which is also an object)Object data typeobject represents a collection of related data and/or functionality.As an example:let myObject = {}; // empty objectlet myArray = []; // empty array (which is also an object)let myFunction = function () {}; // function (which is also an object)Special data typessymbol represents a unique identifier, used primarily for object property keys.As an example:let mySymbol = Symbol(); // symbolKnowing JavaScript's data types is key to writing code that properly manages and modifies data.noteJavaScript is dynamically typed, meaning it is not mandatory to declare variable data types. Instead, the data type is determined at runtime based on the assigned value.