- 博客(9)
- 收藏
- 关注
原创 Section 2.8: CODDING CHALLENGE 3
Let’s remember the first coding challenge where Mark and John compared their BMI. Let’s now implement the same functionality with objects and methods.for each of them, create an object with properti...
2018-12-03 15:42:30 163
原创 Section 2.7: Object and Methods
Section 2.6 讲解了Object的创建,object的property属性。 这节我们讲 Object 和 Methods的关系。Object不仅仅可以储存property,同样可以保存methods。而且,只有object可以引入方法。Very basic method in object. only object has methodsvar alan = { firs...
2018-12-03 15:41:22 152
原创 Section 2.6: Object and Properties
每个object,都可以储存不同类型的value格式一般是key:value, 而value可以为number, string, Array, boolean 等等。var alan = { firstName: 'Alan', //key:value lastName: 'Ning', birthYear: 1990, family:['Faye', 'Aid...
2018-12-03 15:23:46 144
原创 Section 2.5: CODDING CHALLENGE 2
John and his family went on a holiday and went to 3 different restaurants. The bills were $124, $48 and $268.To tip the waiter a fair amount, John created a simple tip calculator (as a fucntion). He ...
2018-12-03 15:18:50 224
原创 Section 2.4 Arrays
ArraysArray elements are numbered, starting with zero. So the first is 0. second is 1…There are ways to defined an array.var array = new Array;array = [];or we can just input the value to define...
2018-11-20 14:11:20 113
原创 Section 2.3 Function
What’s functionA JavaScript function is a block of code designed to perform a particular task.A JavaScript function is executed when “something” invokes it (calls it).JavaScript Function Syntax:A ...
2018-11-20 13:39:30 216
原创 JavaScript-Learning(中英文)
JavaScript Leaning NotesThis note is what I learned from “The Complete JavaScript Course 2018: Build Real Projects”.What you’ll learn:Go from a total beginner to an advanced JavaScript developerC...
2018-11-20 10:49:10 298
原创 Section 2.2 CODDING CHALLENGE 1 ()
CODDING CHALLENGE 1John and Mike both play backetball in different teams. In the lastest 3 games, John’s team scored 89, 120 and 130 points, while Mike’s team scored 116, 96 and 123 point.Calculate...
2018-11-20 10:48:06 159
原创 Section 2.1: Falsy VSTruthy Value and == VS ===
Falsy And Truthy ValueFalsy values: undefined, null, 0, ‘’, NaNTruthy values: Not falsy values var height; if (height) { console.log('Variable is defined'); } else { cons...
2018-11-20 10:41:41 118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人