HUANG's Notes

There is no royal road to learning -- Anthony Trollope

Learn JavaScript

BY Guanqiao Huang

Topic Describe and use JavaScript data types, built-in methods, and variables. Variables provide a way of labeling data with descriptive names. They also allow storing or updati...

JavaScript Notes 2

BY Guanqiao Huang

CONDITIONAL STATEMENTS If Statement In programming, we can also perform a task based on a condition using an if statement: if (true) { console.log('This message will print!'); } // Prints: This...

JavaScript Note

BY Guanqiao Huang

Variable use let or var Tips: Cannot be a reserved keyword, such as if else… Should be meaningful,try using meaning words Cannot start with a number, eg 1name Cannot contain a space or hyp...

JavaScript Function

BY Guanqiao Huang

Default Parameters Default parameters allow parameters to have a predetermined value in case there is no argument passed into the function or if the argument is undefined when called. Example ...

Learn HTML

BY Guanqiao Huang

Learn HTML Topics Create tables in your HTML documents. Create forms. Integrate HTML5 validations. Write accessible HTML using Semantic HTML tags. Learn HTML Resources Codecademy: Lea...

Learn CSS

BY Guanqiao Huang

Learn CSS Topics Explain what CSS is and how to use it to style pages. Style individual and groups of elements using various visual CSS rules. Change CSS colors using a variety of techniques...

JavaScript Testing

BY Guanqiao Huang

a-quick-and-complete-guide-to-mocha-testing Write Tests for Your Lightning Components

JavaScript API

BY Guanqiao Huang

Postman Postman Download API Example JokeAPI async function getJoke() { /* //只是看他创建成功与否, status 200代表成功 fetch("https://v2.jokeapi.dev/joke/Programming") .then((d) => { ...

JavaScript Request

BY Guanqiao Huang

XHR GET Requests II /* written the boilerplate code for an AJAX GET request using an XMLHttpRequest object.*/ const xhr = new XMLHttpRequest(); const url = 'https://api-to-call.com/endpoint'; xhr...

JavaScript Notes 6 Classes

BY Guanqiao Huang

Synchronous execution 同步执行,按照代码顺序 Asynchronous execution 异步执行,加载慢的放到callback queue,比如调用第三方api Pending => The initial state - not completed yet Fulfilled => Successfully completed wit...