"Video Tutorial on Learning JavaScript in 8 Days" This is a course to help you systematically learn the JavaScript programming language. This course introduces the language features of JavaScript from the shallower to the deeper, and analyzes common misunderstandings with practical examples to inspire your thinking and help you learn. Improve your JavaScript skills from beginner to master.
Course playback address: //m.sbmmt.com/course/206.html
The teacher’s teaching style:
The teacher’s lectures are vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; an appropriate humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and warning.
The more difficult point in this video is the javascript object:
1. How to understand the objects in js
1. Abstract perspective: for reality An abstraction of concrete things.
2. Data perspective: Gather unnecessary variables together.
2. Characteristics of objects: achieved by setting the defineProperty method of Object
Object.defineProperty (param1, param2, param3) param1 is the object that needs to define properties. param2 is the attribute name that needs to be defined or modified. param3 is the descriptor of the attribute that needs to be defined or modified.
1. Configurability: configurable (true/false) The default value is true, indicating whether the attribute can be deleted
var person = { name: "zhangsan", age: 21, sayName: function() { console.log(this.name); } }; Object.defineProperty(person, "name", { configurable: false });
false means it cannot be deleted, so it can still print zhangsan
The print result is: zhangsan, 21
Here we also recommend downloading source code resources: //m.sbmmt.com/xiazai/learn/2111
The resources share with you the video courseware and source code
The above is the detailed content of 8 days to learn javascript video tutorial materials (courseware, source code) sharing. For more information, please follow other related articles on the PHP Chinese website!