Back to Browse

JavaScript615-React-Remplacer && par ? ex:{number?.length} Syntaxe simplifiée-Affichage conditionnel

208 views
Jun 6, 2023
4:04

►Blog: https://www.e-genieclimatique.com/apprendre-le-javascript-pour-etre-developpeur-web-mes-videos-sur-le-sujet/ Dans cette vidéo, on découvre cette syntaxe simplifiée qui remplace le && dans ce cas-là : {numberOfComments && numberOfCOmments.lenght} par {numberOfComments ?.length} Les deux manières fonctionnent, le résultat est équivalent mais celle avec le ? est plus courte à écrire qu'avec le && ►Playlist-J'apprends le JavaScript : https://www.youtube.com/watch?v=PKjDWbeKUUU&list=PLF88SKt6r7NbipYFd8-xPRAgelSNMTQgm ►►Soutenez la chaîne TMETLARDY / e-genieclimatique, abonnez-vous : http://bit.ly/e-genieclimatique ►►Souscription à la chaine (zone membre - membership) : https://www.youtube.com/channel/UCyxTI0gODYzGMisT9zv_Nhw/join ►►Super Thanks (Merci) : bouton sous la vidéo ►Blog : https://www.e-genieclimatique.com/plan-du-site ►Twitter : https://www.twitter.com/egenieclim ►Facebook : https://www.facebook.com/egenieclimatique ►Instagram : https://www.instagram.com/egenieclimatique Temps montage (hors encodage et upload) : Matériels production lien Amazon : ►Stream Deck 15 touches: https://amzn.to/3qiR8IC ►Philips 27" 279C9/00 4K UHD : https://amzn.to/36DcwiV ►AMD Ryzen9 3900 : https://amzn.to/3kICV2F ►ASUS TUF Gaming NVIDIA GeForce RTX 3060 V2 12GB: https://amzn.to/3wrKCDv ►ASUS ROG CROSSHAIR VIII HERO WIFI: https://amzn.to/2RUTdcs ►ASUS ROG XG17AHPE : https://amzn.to/32XXpya ►Blue Microphone Yeti Microphone USB : https://amzn.to/2Ew7qJM ►iPad Pro : https://amzn.to/2RUVRyF ►Clavier Logitech MX Keys Plus : https://amzn.to/36gGysP

Download

1 formats

Video Formats

360pmp47.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

JavaScript615-React-Remplacer && par ? ex:{number?.length} Syntaxe simplifiée-Affichage conditionnel | NatokHD