自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 152

原创 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 140

原创 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 130

原创 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 195

原创 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 103

原创 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 190

原创 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 253

原创 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 150

原创 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 111

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除