Understanding Data Types
Data types are crucial, in specifying the type of data that can be stored within a variable. Common data types encompass integers, floating point numbers, characters and various others.
int num = 10;
float pi = 3.14;
char grade = 'A';
int num = 10;
float pi = 3.14;
char grade = 'A';
int num = 10;
float pi = 3.14;
char grade = 'A';
num = 10
pi = 3.14
grade = 'A'
// Declaring variables in JavaScript
let num = 10; // Integer variable
let pi = 3.14; // Floating-point variable
let grade = 'A'; // Character variable (represented as a string)
// Printing the values
console.log("num:", num);
console.log("pi:", pi);
console.log("grade:", grade);
How to Start Coding
In this ever-evolving digital landscape, the ability to code is not just a valuable asset but a gateway to creative expression and innovation. This brief guide will outline practical steps and essential principles to guide aspiring learners on their path to mastering the art of coding.
Table of Content
- Introduction, to Basic Syntax. Hello World
- Understanding Data Types
- Variables and Constants
- Keywords
- Operators
- Decision Making statements
- Loops
- Numbers
- Characters
- Arrays
- Strings- Basic String Concepts
- Functions
Contact Us