Basic JavaScript 060

31-Use Bracket Notation to Find the First Character in a String

// Example
var firstLetterOfFirstName = "";
var firstName = "Ada";

firstLetterOfFirstName = firstName[0];

// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";

// Only change code below this line
firstLetterOfLastName = lastName[0];

32-Use Bracket Notation to Find the NthtoLast Character in a String

// Example
var firstName = "Ada";
var thirdToLastLetterOfFirstName = firstName[firstName.length - 3];

// Setup
var lastName = "Lovelace";

// Only change code below this line
var secondToLastLetterOfLastName = lastName[lastName.length - 2];

33-Word Blanks

34-Store Multiple Values in one Variable using JavaScript Arrays

35-Nest one Array within Another Array

36-Access Array Data with Indexes

37-Modify Array Data With Indexes

38-Access MultiDimensional Arrays With Indexes

39-Manipulate Arrays With push

40-Manipulate Arrays With pop

41-Manipulate Arrays With shift

42-Manipulate Arrays With unshift

43-Shopping List

44-Write Reusable JavaScript with Functions

  • 要 call、調用函數,要將括號 functonName()

  • 大括號 curly braces

  • 括號 parentheses

45-Passing Values to Functions with Arguments

46-Global Scope and Functions

  • scope 作用域

  • 沒用 var 宣告的變數,會自動變成全局 global 變數

47-Local Scope and Functions

  • 這題的教學有點難懂 = =

48-Global vs Local Scope in Functions

  • 優先權

49-Return a Value from a Function with Return

50-Assignment with a Returned Value

  • 將 function 返回的值 assign 變數

51-Stand in Line

52-Understanding Boolean Values

53-Use Conditional Logic with If Statements

54-Comparison with the Equality Operator

55-Comparison with the Strict Equality Operator

56-Comparison with the Inequality Operator

57-Comparison with the Strict Inequality Operator

58-Comparison with the Greater Than Operator

  • the Greater Than Operator 大於符號

59-Comparison with the Greater Than Or Equal To Operator

60-Comparison with the Less Than Operator

Last updated

Was this helpful?