-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Summary
Understand and apply ES6 features by creating examples and writing a blog post series on these features within four weeks. | 在四周内通过创建示例并编写博客文章系列来理解和应用 ES6 特性。
TODOList
Step 1: Understanding ES6 Syntax and Features (1-2 weeks)
-
Let and Const:
- Review the differences and use cases for
let,const, andvar. - Write examples showcasing scope and hoisting differences.
- Review the differences and use cases for
-
Arrow Functions:
- Understand syntax and lexical
this. - Convert traditional functions into arrow functions in a small project.
- Understand syntax and lexical
-
Template Literals:
- Practice using template strings for cleaner string concatenation.
- Implement in an existing project for dynamic HTML generation.
-
Destructuring Assignment:
- Apply destructuring in arrays and objects.
- Refactor old code to use destructuring for cleaner syntax.
Step 2: Advanced ES6 Features (1-2 weeks)
-
Default, Rest, and Spread Operators:
- Learn about setting default parameter values in functions.
- Use rest and spread operators in functions and arrays.
-
Promises and Async/Await:
- Introduce Promises and their use cases.
- Refactor previous callback-based code to use Promises and async/await.
-
Modules and Classes:
- Understand import/export syntax and module bundling.
- Implement simple class inheritance and usage.
Step 3: Practical Application and Blogging (1-2 weeks)
-
Create a Mini Project:
- Build a small app incorporating the ES6 features learned.
- Focus on readability and modular code.
-
Write a Blog Series:
- Publish blog posts summarizing each feature with examples.
- Demonstrate understanding through code snippets and explanations.
Books & Resources
- Understanding ECMAScript 6
- ECMAScript 6 入门(阮一峰)
- ES6 online tutorials and documentation
- ESLint 入门
Metadata
Metadata
Assignees
Labels
Projects
Status
Reject