Professional Documents
Culture Documents
HTML Javascript
CSS( Cascading style sheet)
🞂 CSS is not a Programming language, it is style sheet language that we use to tell
the browser what we want our HTML look like.
How to add Javascript to HTML ?
🞂 Internal code: Adding the JavaScript code between a pair of <script>...</script> tag
🞂 Inline code: Placing JavaScript code directly inside HTML tags using some special attributes.
🞂 External file: Making a separate JavaScript file having .js as an extension.
🞂 <script src=“main.js"></script>
Variables in Javacsrpt
🞂 Variable is a container for storing data values those are
🞂 var – ES5
🞂 let – ES6
🞂 const – ES6
🞂 var a = 8
console.log(“ value of a is “ a )
🞂 let b = 4
// b=5
console.log(“ value of b is “ b )
🞂 const c = 4
🞂 // c=5
console.log(“ value of c is “ c )
Javascript Datatypes
🞂 In JavaScript there are two types of Data types
those are
1. Primitive Data types
2. Non – Primitive Data types
Primitive data types that can not be change they are immutable those are
3. String (“ Javascript”)
4. Number ( 1,2,3,4,5)
5. Boolean ( true or false)
6. Undefined
7. Null
Non-primitive data types are mutable the value can be change
8. Array
9. Object
🞂 Var name = “Ambitiouslifz” - string
🞂 Var a =10 – number