Skip to main content

introduction javascript |0

 

What is Javascript ?

JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages.

in one word : java script is just in time compile programming language.

Why is it called JavaScript?

When JavaScript was created, it initially had another name: “LiveScript”. But Java was very popular at that time, so it was decided that positioning a new language as a “younger brother” of Java would help. But as it evolved, JavaScript became a fully independent language with its own specification called ECMAScript, and now it has no relation to Java at all.

Note : javascript is made by Brendon Eich in 1995 in that time javascript is called mocha before

Javascript Syntax

console.log it is the function in javascript which used to  print any kind of variables defined
before in it or to just print any message that needs to be displayed to the user.

double slash (//)  : double slash is use for single line comment 

variable declere keyword
1. var )----------~   this keyword is the redeclere and changable their value is undefine 
ex :-   var x = 5; var y = 5;

2. let )----------~ this keyword is undeclare but this the updatable and their value is define
ex :-    let x = 5;

3. const )----------~ this keyword undeclere and unupdatble
ex :- const price = 10 


Arithmetic operator
    let x-5;
    let y-9;

Datatypes in javascript

1. primative values 
2. object

#Primative values
primative value are the those immutable data which is at the lowest level of this language
there are 7 primative datatypes 
1. string
2. number
3. bigint
4. boolean
5. null
6. undefined
7. symbol

if else condition in javascript 

here is code for if else explanation 

//if else condition
let status = "roshay";
if (status === "roshay") {
     message = "he is the programmer"
}else {
   message = "welcome to our blog"
}





Comments

Popular posts from this blog

BASIC STRUCTURE AND GENERAL ABOUT HTML BY RONASH

 A Basic HTML Page <!doctype html>                                            specifies this is an html 5 doc <html>                                                               root of an html page <head>                                                               content page meta data <tittle>roshay</tittle>                                  contains tittle ...

HTML, CSS, JS and how website work

 Basic Requirments to build a website HTML                    Must/Structure/Skalaton CSS                         Design JAVASCRIPT     Logic/Brain How Website Work Client request for the website  server returns the response Role of HTML - HTML stands for Hyper Text Markup Language - it is basically a standard markup language for given a statics skeleton to web application and website - its a well standarized system  ROle of CSS -Cascading Style Sheets which is known as CSS is a style sheet language that use to handle the presenatation of the web pages containing HTML - it makes our websites beautiful and modern looking Role of JS - JavaScript which is known as js, is a highly level dynamic interprated programming language. - it allows client-side scripting to create completely dynamic web application and websites. 

Topics to cover in fundamental of computer

 In a "Fundamentals of Computer" course or discussion, you should aim to cover topics that provide a strong foundational understanding of how computers work. Here’s a comprehensive list of topics you might include: 1. Introduction to Computers History of Computers Generations of Computers Classification of Computers (e.g., analog, digital, hybrid) Applications of Computers in different fields 2. Basic Components of a Computer Input Devices (e.g., keyboard, mouse) Output Devices (e.g., monitor, printer) Central Processing Unit (CPU) Memory Units (RAM, ROM, Cache) Storage Devices (Hard Drives, SSDs, Optical Disks) 3. Hardware and Software Difference between Hardware and Software Types of Software (System, Application, Utility, Firmware) Operating Systems: Roles and Examples Computer Architecture Basics (Von Neumann Architecture) 4. Data Representation Number Systems (Binary, Decimal, Octal, Hexadecimal) Data Conversion between Number Systems ASCII and Unicode Standards Represen...