Skip to content
  • SiteMap
  • Our Services
  • Frequently Asked Questions (FAQ)
  • Support
  • About Us

UpdateGadh

Update Your Skills.

  • Home
  • Projects
    •  Blockchain projects
    • Python Project
    • Data Science
    •  Ai projects
    • Machine Learning
    • PHP Project
    • React Projects
    • Java Project
    • SpringBoot
    • JSP Projects
    • Java Script Projects
    • Code Snippet
    • Free Projects
  • Tutorials
    • Ai
    • Machine Learning
    • Advance Python
    • Advance SQL
    • DBMS Tutorial
    • Data Analyst
    • Deep Learning Tutorial
    • Data Science
    • Nodejs Tutorial
  • Blog
  • Contact us
  • Toggle search form
30 Days Of JavaScript | DAY-3

DAY-3

Posted on July 17, 2023January 16, 2026 By Rishabh saini No Comments on DAY-3

Data Types

Today, we’re going to focus on JavaScript data types and variables. Data is stored and given a name using variables so that it is easier to find them afterward. The type of data being stored is determined by data types. Let’s examine the various data types and variable types available in JavaScript.

Declaring Variables:

To declare a variable in JavaScript, we use the var, let, or const keyword, followed by the variable name. For example:

var age;
let name;
const PI = 3.14;

Let and const have block scope, whereas the keyword var has global scope or function scope.

Assigning Values:

The assignment operator (=) is used to give a value to a variable. For example:

age = 25;
name = "update Gadh";

Data Types:

There are various built-in data types in JavaScript:
Number: Represents numerical values as a number. Let age be 25, for instance. 
String: Represents textual information contained in quotation marks. Let the name be “John Doe” as an example.
Boolean: Represents either true or false. Let isActive, for instance, be true.
Array: An array is a representation of an organized group of values. Let numbers be [1, 2, 3, 4, 5].
Object: Represents a group of key-value pairs. For instance:

let person = {
name: "John Doe",
age: 25,
isActive: true
};

Dynamic Typing

The data type of a variable can be changed at any time because JavaScript is a dynamically typed language. For instance:

let age = 25;
age = "Twenty-Five"; // Valid, changing the data type

Typeof Operator:

We can use the typeof operator to identify a variable’s data type. For instance:

let name = "John Doe";
console.log(typeof name); // Output: "string"

These are the fundamental concepts of variables and data types in JavaScript. Practice declaring variables and assigning values of different data types to gain a better understanding.

Tomorrow, we will cover operators and expressions in JavaScript. Keep up the good work!

Read More :https://updategadh.com/javascript/30-days-of-javascript-day-3/

 

Post Views: 703
JAVASCRIPT Tags:JavaScript

Post navigation

Previous Post: How to Install Node.js and NPM on Windows
Next Post: How to use ChatGPT: Everything you need to know

More Related Articles

30 Days Of JavaScript : JAVASCRIPT JAVASCRIPT
30 Days Of JavaScript : JAVASCRIPT DAY -2 JAVASCRIPT
How To Create a Parallax Scrolling Effect - Chrome Capture 2023 9 11 2 How To Create a Parallax Scrolling Effect JAVASCRIPT

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed Posts

  1. Top Large Language Models in 2025
  2. Online Shopping System using PHP, MySQL with Free Source Code
  3. login form in php and mysql , Step-by-Step with Free Source Code
  4. News Portal Project in PHP and MySql Free Source Code
  5. Flipkart Clone using PHP And MYSQL Free Source Code
  6. User Login & Registration System Using PHP and MySQL Free Code
  7. Top 10 Final Year Project Ideas in Python
  8. Online Bike Rental Management System Using PHP and MySQL
  9. E learning Website in php with Free source code
  10. E-Commerce Website Project in Java Servlets (JSP)
  • AI
  • ASP.NET
  • Blockchain
  • ChatCPT
  • code Snippets
  • Collage Projects
  • Data Science Project
  • Data Science Tutorial
  • DBMS Tutorial
  • Deep Learning Tutorial
  • Final Year Projects
  • Free Projects
  • How to
  • html
  • Interview Question
  • Java Notes
  • Java Project
  • Java Script Notes
  • JAVASCRIPT
  • Javascript Project
  • JSP JAVA(J2EE)
  • Machine Learning Project
  • Machine Learning Tutorial
  • MySQL Tutorial
  • Node.js Tutorial
  • PHP Project
  • Portfolio
  • Python
  • Python Interview Question
  • Python Projects
  • PythonFreeProject
  • React Free Project
  • React Projects
  • Spring boot
  • SQL Tutorial
  • TOP 10
  • Uncategorized
  • Online Examination System in PHP with Source Code
  • AI Chatbot for College and Hospital
  • Job Portal Web Application in PHP MySQL
  • Online Tutorial Portal Site in PHP MySQL — Full Project with Source Code
  • Online Job Portal System in JSP Servlet MySQL

Copyright © 2026 UpdateGadh.

Powered by PressBook Green WordPress theme