Comprehension(s) list(array) is used inwards many figurer languages. What it does is it takes an array in addition to modifies it to practise a novel list(array) based on unopen to modifier.
For instance if you lot get got a listing similar this: [ 1,2,3 ],
you tin practise a novel listing alongside each chemical factor of listing replaced yesteryear itself multiplied iii times similar inwards Example 1
In the minute instance from Mozilla site, you lot accept an array of lower instance letters in addition to purpose the Javascript string operatory 'toUpper()' to generate a novel array alongside letters of each chemical factor capitalized.
Read here:
https://www.xul.fr/javascript/comprehension.php
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Comparison_operators
These were tested to live inwards Mozilla Firefox (I believe it is version 54). However it does non live inwards Microsoft Edge. I believe these are yet beingness tested for hereafter version of ECMA script according to the Mozilla Developer site.
For instance if you lot get got a listing similar this: [ 1,2,3 ],
you tin practise a novel listing alongside each chemical factor of listing replaced yesteryear itself multiplied iii times similar inwards Example 1
In the minute instance from Mozilla site, you lot accept an array of lower instance letters in addition to purpose the Javascript string operatory 'toUpper()' to generate a novel array alongside letters of each chemical factor capitalized.
Read here:
https://www.xul.fr/javascript/comprehension.php
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Comparison_operators
These were tested to live inwards Mozilla Firefox (I believe it is version 54). However it does non live inwards Microsoft Edge. I believe these are yet beingness tested for hereafter version of ECMA script according to the Mozilla Developer site.
Komentar
Posting Komentar