HEADER ADS 728X90

How to use javascript object Data Type | JS Tutorial | By Codeprime

Abdullah sheikh,css,html,php,javascript,tutorial,code prime,object data type javascript,object data type in javascript with example,javascript data types list,object data type example,what is data type in javascript,object data type python,data types in c# with examples,reference types in c#,how to use object data type,object,arays,funtion,javascript tutorial for beginners,javascript tutorial,javascript tutorial for beginners in bengali,java tutorial bangla,js, codeprime, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to "CodePrime" Blog . In this post You are going to learn How to use object Data Type in javascript. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat object.js file Then Copy The JS CODE and pest it. next connect the object.js file with index.html. then open the index.html file with your browser.

HTML CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="/js/object.js"></script>
    <title>premitive data type</title>
</head>
<body>
    <h2>Javascript Tutorial</h2>
    <h3>By Codeprime</h3>
   
</body>
</html>

JAVASCRIPT CODE

let shirt={
    type:'T-Shirt',
    color:'black',
    cost:40,

};

console.log(shirt);

//objectname.propertyname
//objectname['propertyname']

console.log(shirt.cost);

//example

let AbdullahSheikh={
    age:22,
    university:'University Of People',
    semister:'3rd',
    subject:['physics','math','ict','english']
};

console.log(AbdullahSheikh.subject[0]);

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram