The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
章節目錄
1-1
Content list
1-2
About
1-3
Chapter 1: Getting started with JavaScript
1-4
Section 1.1: Using console.log()
1-5
Section 1.2: Using the DOM API
1-6
Section 1.3: Using window.alert()
1-7
Section 1.4: Using window.prompt()
1-8
Section 1.5: Using window.confirm()
1-9
Section 1.6: Using the DOM API (with graphical text: Canvas, SVG, or image file)
1-10
Chapter 2: JavaScript Variables
1-11
Section 2.1: Defining a Variable
1-12
Section 2.2: Using a Variable
1-13
Section 2.3: Types of Variables
1-14
Section 2.4: Arrays and Objects
1-15
Chapter 3: Built-in Constants
1-16
Section 3.1: null
1-17
Section 3.2: Testing for NaN using isNaN()
1-18
Section 3.3: NaN
1-19
Section 3.4: undefined and null
1-20
Section 3.5: Infinity and -Infinity
1-21
Section 3.6: Number constants
1-22
Section 3.7: Operations that return NaN
1-23
Section 3.8: Math library functions that return NaN
1-24
Chapter 4: Comments
1-25
Section 4.1: Using Comments
1-26
Section 4.2: Using HTML comments in JavaScript (Bad practice)
1-27
Chapter 5: Console
1-28
Section 5.1: Measuring time - console.time()
1-29
Section 5.2: Formatting console output
1-30
Section 5.3: Printing to a browser's debugging console
1-31
Section 5.4: Including a stack trace when logging - console.trace()
1-32
Section 5.5: Tabulating values - console.table()
1-33
Section 5.6: Counting - console.count()
1-34
Section 5.7: Clearing the console - console.clear()
1-35
Section 5.8: Displaying objects and XML interactively - console.dir(), console.dirxml()
1-36
Section 5.9: Debugging with assertions - console.assert()
1-37
Chapter 6: Datatypes in JavaScript
1-38
Section 6.1: typeof
1-39
Section 6.2: Finding an object's class
1-40
Section 6.3: Getting object type by constructor name
1-41
Chapter 7: Strings
1-42
Section 7.1: Basic Info and String Concatenation
1-43
Section 7.2: Reverse String
1-44
Section 7.3: Comparing Strings Lexicographically
1-45
Section 7.4: Access character at index in string
1-46
Section 7.5: Escaping quotes
1-47
Section 7.6: Word Counter
1-48
Section 7.7: Trim whitespace
1-49
Section 7.8: Splitting a string into an array
1-50
Section 7.9: Strings are unicode
1-51
Section 7.10: Detecting a string
1-52
Section 7.11: Substrings with slice
1-53
Section 7.12: Character code
1-54
Section 7.13: String Representations of Numbers
1-55
Section 7.14: String Find and Replace Functions
1-56
Section 7.15: Find the index of a substring inside a string
1-57
Section 7.16: String to Upper Case
1-58
Section 7.17: String to Lower Case
1-59
Section 7.18: Repeat a String
1-60
Chapter 8: Date
1-61
Section 8.1: Create a new Date object
1-62
Section 8.2: Convert to a string format
1-63
Section 8.3: Creating a Date from UTC
1-64
Section 8.4: Formatting a JavaScript date
1-65
Section 8.5: Get the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC
1-66
Section 8.6: Get the current time and date
1-67
Section 8.7: Increment a Date Object
1-68
Section 8.8: Convert to JSON
1-69
Chapter 9: Date Comparison
1-70
Section 9.1: Comparing Date values
1-71
Section 9.2: Date Dierence Calculation
1-72
Chapter 10: Comparison Operations
1-73
Section 10.1: Abstract equality / inequality and type conversion
1-74
Section 10.2: NaN Property of the Global Object
1-75
Section 10.3: Short-circuiting in boolean operators
1-76
Section 10.4: Null and Undefined
1-77
Section 10.5: Abstract Equality (==)
1-78
Section 10.6: Logic Operators with Booleans
1-79
Section 10.7: Automatic Type Conversions
1-80
Section 10.8: Logic Operators with Non-boolean values (boolean coercion)