From 8bbe28f2ef2083c42d93ee792539292af5f108e7 Mon Sep 17 00:00:00 2001 From: aliaa gheis <35627349+aliaagheisX@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:03:46 +0200 Subject: [PATCH] Add content to (Implicit-type-casting, Async/Await, Comparison operator) with fix typo in comparison operator (#2125) * 102-implicit-type-casting.md * fix typo and add content in 101-comparison-operators.md * Update 100-async-await.md * fix typo compasion operator in javascript.json * Rename 101-comparison-operators.md to 101-omparison-operators.md * Update public/project/javascript.json * Update content/roadmaps/106-javascript/content/103-javascript-type-casting/102-implicit-type-casting.md * Update content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/101-omparison-operators.md Co-authored-by: Kamran Ahmed --- .../102-implicit-type-casting.md | 7 ++++++- .../101-omparison-operators.md | 8 +++++++- .../104-promises/100-async-await.md | 11 ++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/content/roadmaps/106-javascript/content/103-javascript-type-casting/102-implicit-type-casting.md b/content/roadmaps/106-javascript/content/103-javascript-type-casting/102-implicit-type-casting.md index 0344473e5..72d8ed288 100644 --- a/content/roadmaps/106-javascript/content/103-javascript-type-casting/102-implicit-type-casting.md +++ b/content/roadmaps/106-javascript/content/103-javascript-type-casting/102-implicit-type-casting.md @@ -1 +1,6 @@ -# Implicit type casting \ No newline at end of file +# Implicit Type Casting + +Implicit type casting happens when JavaScript automatically converts one data type to another to meet the expectations of the process. as for example passing a number when it expects a string like `"foo" + 1`, the Number `1` is implicitly converted into a string and the expression returns `"foo1"`. + +Free Content +What you need to know about Javascript's Implicit Coercion diff --git a/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/101-omparison-operators.md b/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/101-omparison-operators.md index 376e3bc09..7d11538f9 100644 --- a/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/101-omparison-operators.md +++ b/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/101-omparison-operators.md @@ -1 +1,7 @@ -# Omparison operators \ No newline at end of file +# Comparison Operators + +Comparison operators are the operators that compare values and return true or false. +The operators include : `>`, `<`, `>=`, `<=`, `==`, `===`, `!==` and `!===` + +Free Content +Comparison operators diff --git a/content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/104-promises/100-async-await.md b/content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/104-promises/100-async-await.md index b0197a63d..703b6518b 100644 --- a/content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/104-promises/100-async-await.md +++ b/content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/104-promises/100-async-await.md @@ -1 +1,10 @@ -# Async await \ No newline at end of file +# Async await + +`async/await` is a special syntax to work with promises in a more comfortable fashion. +We use `async` keyword to declare a async function that return a Promise, and the `await` keyword makes a function wait for a Promise. + +Free Content +Async/await +async function +JavaScript Promises - Chaining +JavaScript Async/Await Tutorial – Learn Callbacks, Promises, and Async/Await in JS by Making Ice Cream