Bidouilleux d'Web - Mot-clé - ECMAScript6 - CommentairesLe blog technique de la communauté Mozilla francophone2022-02-04T14:07:43+01:00Communauté Mozilla francophoneurn:md5:935a9b6df47b29d6dc8c2ca47296b179DotclearES6 en détails : les paramètres du reste et les paramètres par défaut - eddyurn:md5:a8b851bc6709c7742ea43269821f15322019-05-27T15:55:39+02:002019-05-27T14:55:39+02:00eddy<p>function joliePhraseAnimaux(animaux2="tigres",<br />
animaux3 = animaux2 == "ours") ? "phoques" : "ours"){</p>
<p>return `Oh ! Des lions, des ${animaux2} et des ${animaux3} !`;<br />
}</p>
<p>il manque une parenthèse avant : animaux2 == "ours</p>
<p>function jpa(animaux2="tigres",<br />
animaux3 = (animaux2 == "ours") ? "phoques" : "ours"){</p>
<p>return `Oh ! Des lions, des ${animaux2} et des ${animaux3} !`;<br />
}</p>ES6 en détails : les gabarits de chaînes de caractères - Danilourn:md5:6b37d3df8bd147e5a93f2784dbc81c172018-11-22T21:25:47+01:002018-11-22T21:25:47+01:00Danilo<p>Hit a few watching your processor collection expand significant enough to take<br />
anyone heavy in to the free-roll and established you upto hit your goal<br />
complete whether that be progression or prize money.</p>ES6 en détails : les sous-classes et l'héritage - Enchurn:md5:9829ce4a9ddc3d248effbe6818ccec992017-05-26T16:14:34+02:002017-08-21T18:16:36+02:00Ench<p>Excellent tout ça. Très bon billet. Je pense que je vais le relire quelques fois pour tout assimiler. Merci :)</p>