Добавить
Уведомления

Lecture No 30 Advance JavaScript Learn Compersion operator URDU/HINDi #javascript #operator

What are comparison operators in JavaScript? In JavaScript, there are two types of comparison operators: Type-converting (or Abstract) Strict 1. Type-converting comparison This category includes all of the commonly known comparison operators (e.g., less-than, greater-than, equal-to, etc.). These are known as type-converting because, in case of a comparison between operands of different types, one of the operands is first converted to the other type and then the comparison is made. The function check(), in the code snippet above, will return true. This is because '5', which is a String, is converted into a Number before comparison. Therefore, we use the type-converting operators when the main thing to compare is the value, not the type, of the two operands. When comparing two Objects, all relational operators, except for the == operator, use the valueOf() method to convert the Objects into a suitable value for comparison. The == operator will only return true when both the Objects are same; 2. Strict comparison In a strict comparison, true is returned if, and only if, both the operands have the same type and value; moreover, in the case of JavaScript Objects, both should refer to the same Object. The most commonly used strict comparison operators are the strict equality === and inequality !== operators: #Reactjs #development #compersion #operator #developer #vuejs #angularjs #learn #findindex #find #javascript #javascriptengineer #filter #map #foreach #reducere #every #some #alert #prompterchallenge #prompt #confirm #slice #splice #toString #valueOF #fill #map #foreach Lecture No 7 : - How To Used Map Function in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=y2OrVxOCgcI&t=31s Lecture No 8 : - How To Used JavaScript forEach in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=Xro4MaseMWc Lecture No 10 : - How To Used filter Function in JavaScript.(React js, Node js, Vue js) |https://www.youtube.com/watch?v=T0ikgjKo_WI Lecture No 11 : - How To Used find Function in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=_8A_EGXC6q0 Lecture No 12 : - How To Used findIndex Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=blb3HAfEhPY Lecture No 13 How To Used Reducer Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=F-_9UnT2LNg&list=PLrBwmemH_D8uWFctW8Jgs20VefDXEv5iB&index=13 Lecture No 14 How To Used some & every Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=20gutbvl4BI Lecture No 15 How to Swap Two variable in JavaScript without 3rd variable use | https://www.youtube.com/watch?v=F8Ops-0lAOs Lecture No 16 Advance Array Destructuring in JavaScript | https://www.youtube.com/channel/UCc3tg0aU_aLsts_EQbxeUMA Lecture No 17 Advance JavaScript Object Destructuring. | https://www.youtube.com/watch?v=Vd1wOgHwF1I Lecture No 18 How to used & Work Fat arrow Function | https://www.youtube.com/watch?v=iXthn2fFbfQ

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

What are comparison operators in JavaScript? In JavaScript, there are two types of comparison operators: Type-converting (or Abstract) Strict 1. Type-converting comparison This category includes all of the commonly known comparison operators (e.g., less-than, greater-than, equal-to, etc.). These are known as type-converting because, in case of a comparison between operands of different types, one of the operands is first converted to the other type and then the comparison is made. The function check(), in the code snippet above, will return true. This is because '5', which is a String, is converted into a Number before comparison. Therefore, we use the type-converting operators when the main thing to compare is the value, not the type, of the two operands. When comparing two Objects, all relational operators, except for the == operator, use the valueOf() method to convert the Objects into a suitable value for comparison. The == operator will only return true when both the Objects are same; 2. Strict comparison In a strict comparison, true is returned if, and only if, both the operands have the same type and value; moreover, in the case of JavaScript Objects, both should refer to the same Object. The most commonly used strict comparison operators are the strict equality === and inequality !== operators: #Reactjs #development #compersion #operator #developer #vuejs #angularjs #learn #findindex #find #javascript #javascriptengineer #filter #map #foreach #reducere #every #some #alert #prompterchallenge #prompt #confirm #slice #splice #toString #valueOF #fill #map #foreach Lecture No 7 : - How To Used Map Function in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=y2OrVxOCgcI&t=31s Lecture No 8 : - How To Used JavaScript forEach in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=Xro4MaseMWc Lecture No 10 : - How To Used filter Function in JavaScript.(React js, Node js, Vue js) |https://www.youtube.com/watch?v=T0ikgjKo_WI Lecture No 11 : - How To Used find Function in JavaScript.(React js, Node js, Vue js) | https://www.youtube.com/watch?v=_8A_EGXC6q0 Lecture No 12 : - How To Used findIndex Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=blb3HAfEhPY Lecture No 13 How To Used Reducer Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=F-_9UnT2LNg&list=PLrBwmemH_D8uWFctW8Jgs20VefDXEv5iB&index=13 Lecture No 14 How To Used some & every Function in JavaScript React js, Node js, Vue js | https://www.youtube.com/watch?v=20gutbvl4BI Lecture No 15 How to Swap Two variable in JavaScript without 3rd variable use | https://www.youtube.com/watch?v=F8Ops-0lAOs Lecture No 16 Advance Array Destructuring in JavaScript | https://www.youtube.com/channel/UCc3tg0aU_aLsts_EQbxeUMA Lecture No 17 Advance JavaScript Object Destructuring. | https://www.youtube.com/watch?v=Vd1wOgHwF1I Lecture No 18 How to used & Work Fat arrow Function | https://www.youtube.com/watch?v=iXthn2fFbfQ

, чтобы оставлять комментарии