-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavascriptMethod.js
More file actions
31 lines (29 loc) · 826 Bytes
/
JavascriptMethod.js
File metadata and controls
31 lines (29 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 'use strict';
// var Person = {
// name:"Perry Xiang",
// country:"Sichuan Province",
// fast:"fast"
// };
// Object.preventExtensions(Person);
// Person.name = "Qin";
// console.log(Person.name);
// // Person.age = 26;
// // console.log(Person.age);
// delete Person.fast;
// console.log(Person.fast);
// console.log(Object.isSealed(Person));
// Object.seal(Person);
// // delete Person.country;
// // console.log(Person.country);
// console.log(Object.isSealed(Person));
// // Update and Add after Seal
// Person.name = "China";
// console.log(Person.name);
// // Freeze
// console.log(Object.isFrozen(Person));
// Object.freeze(Person);
// console.log(Object.isFrozen(Person));
// // Update and Add after freeze
// Person.name = "America";
// console.log(Person.name);
console.log(applicationCache.status);