This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doSomething() { | |
// 我們要做的事... | |
console.log('你的程式邏輯...');🤨 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const doSomething = () => { | |
// 要做的事放這... | |
console.log('程式邏輯...');😮 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 10; // 聲明一個變數,且它的值為:數字10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 'Kevin Tung'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 'A'; // 這個是字符 | |
var y = 'Kevin'; // 這個則是字串 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12378 + 5564 * 8796 / 400 % (200 * 3) + 223 - 1000 = ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 5564 * 8796; | |
var b = a / 400 % (200 * 3); | |
var c = 12378; | |
var d = 223 - 1000; | |
c + b + d = ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var expenses = 5000; // 聲明一個變數叫做花費 | |
var income = 10000; // 聲明一個變數叫做收入 | |
var balance = income - expenses; // 將前兩個變數做運算,並存入新的變數叫做餘額 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var incomeEachMonth = 40000; // 聲明一個變數叫做:每月收入 | |
var monthlyExpense = 20000; // 聲明一個變數叫做:每月消費 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = 'Kevin'; // 聲明一個變數叫做名字(name),且它的值為'Kevin' | |
var location = 'Taipei'; // 聲明一個變數叫做地點(location),且它的值為'Taipei' | |
var chineseName = '小明'; // 聲明一個變數叫做中文名字(chineseName),且它的值為'小明' | |
var store = "Starbucks 星巴克"; // 聲明一個變數叫做店(store),且它的值為'Starbucks 星巴克' |
OlderNewer