This project is a comprehensive set of exercises aimed at enhancing proficiency in ES6 JavaScript concepts and practices. It consists of a series of tasks focusing on various ES6 features and syntax. Learners will explore and implement modern JavaScript practices through these exercises.
The project is structured around the following key concepts:
- Modern JavaScript
- ECMAScript 6 (ES2015)
- Statements and declarations
- Arrow functions
- Default parameters
- Rest parameter
- Spread syntax
- Template literals
- Object creation and properties in ES6
- Iterators and for-of loops
Learners are encouraged to refer to the following resources:
- ECMAScript 6 - ECMAScript 2015
- Statements and declarations
- Arrow functions
- Default parameters
- Rest parameter
- JavaScript ES6 — Iterables and Iterators
- Ubuntu 18.04 LTS
- NodeJS 12.11.x
- vi, vim, emacs, Visual Studio Code
All files should end with a new line.
Jest Testing Framework
ESLint along with specific rules provided in the configuration files.
- Install NodeJS 12.11.x using the specified commands.
- Install Jest, Babel, and ESLint using the supplied
package.json
andnpm install
.
package.json
: Contains scripts for linting, development, testing, and ESLint configurations.babel.config.js
: Configures Babel presets targeting the current NodeJS version..eslintrc.js
: Defines linting rules, environments, and overrides for JavaScript files.
The project includes multiple tasks focusing on various ES6 concepts, each accompanied by examples, execution instructions, and repository references.
- Const or let?: Modify functions to use
const
andlet
appropriately. - Block Scope: Prevent variable overwriting inside conditional blocks.
- Arrow Functions: Rewrite functions using arrow function syntax.
- ... [List continues with brief summaries of each task]
The repository contains a series of tasks aimed at learning and practicing ES6 Promises in JavaScript. The tasks cover various aspects of Promise handling, error management, asynchronous operations using async
and await
, and more.
- Understand Promises, their creation, and usage
- Explore methods such as
then
,catch
,async
, andawait
- Practice error handling within Promises
The resources section includes links to articles and tutorials on Promises in JavaScript. These resources serve as references to aid in understanding and implementing Promise concepts effectively.
To run and execute the tasks in this project, ensure the following:
- NodeJS 12.11.x installed (on Ubuntu 18.04 LTS)
- Allowed editors:
vi
,vim
,emacs
,Visual Studio Code
- Code files should use the
.js
extension - Testing performed using Jest
- Code verification against lint using ESLint
Detailed setup instructions, including installing NodeJS, Jest, Babel, and ESLint, are provided in the project.
Each task is located in a designated directory within the repository and contains:
- Detailed task descriptions
- Sample code snippets
- Execution instructions
- Links to the respective files on GitHub
- Keep every promise you make and only make promises you can keep
- Don't make a promise...if you know you can't keep it
- Catch me if you can!
- Handle multiple successful promises
- Simple promise
- Reject the promises
- Handle multiple promises
- Load balancer
- Throw error / try catch
This combined README.md file gives an overview of both projects, their objectives, resources, setup instructions, and task descriptions. Please modify and customize it according to the specific details, instructions, and links pertaining to your project's repository.
Enjoy exploring and mastering ES6 JavaScript concepts through these engaging tasks!
Copyright © 2024 ALX, All rights reserved.