Revert "object exercise 1 finished."

This reverts commit 4207b5d30d.
pull/162/head
ardaninsaturnu 3 years ago
parent 284b489b45
commit 4a30ddd1da

@ -50,5 +50,3 @@ countries.length % 2 === 0 ?
console.log(countries.slice( 0,6 ),countries.slice( 6,12 )); console.log(countries.slice( 0,6 ),countries.slice( 6,12 ));

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Object exercises</title>
</head>
<body>
<script src="object.js"></script>
</body>
</html>

@ -1,18 +0,0 @@
console.log('OBJECT LİTERALS');
const dog = {
name:'Lessie',
color:'Brown',
legs: '4',
age: 3,
bark: 'wooof wooof'
}
console.log(dog.name,dog['color'])
dog.breed = 'rot';
dog.GetDogInfo = function(){
return `this dogs name is ${this.name} and it has good ${this.color} color it has ${this.legs} legs.`;
}
console.log(dog.GetDogInfo())
Loading…
Cancel
Save