logo

NJP

CCB1208: ECMAScript 2021 Rap Pre-recorded (Knowledge CreatorCon 2024)

Import · Jul 23, 2024 · video

[Music] a world of code change is constant dive into ecmascript so vibrant with let cons we start our tail scoping variables without fail Block Level scoping now the norm gone are the days of our we transform cons for Conant they never sway let allows change in a controlled way next up The Dead Zone a conso so bizarre in our realm it's different by far but understanding its quirks in javascripts wide Zone we avoid errors as it's often show variables declared but not yet alive access to early errors derive but in service now's land the rules may bend adapting our code to the platform we commend exponents are next with a syntax so bright calculating Powers it's a beautiful site no more math pal these as for risks take light making code cleaner oh so right variables or numbers the base or the height this new notation brings exponents to light simplifying our math with elegance and mind we're bringing these exponents to brand new light now the knowledge col Lessing operator takes a stage handling undefined and N with wisdom of a sage no more confusion with falsy values were clear it shows the defaults with no fear this is where or Falls with its unique flare null or undefined it handles with care so Embrace this operator in your code air for safer defaults it's beyond [Music] [Music] compare lesson five mer sear raor a small But Mighty feet making large numbers readable pretty neat binary to hex readability complete with underscores clarities now replete separating digits in a style so sweet making our numbers easier to cre No More Counting zeros in a tedious D numeric separators make our code complete logical assignment operators join the logic spree with or and and assigning with Glee a pending strings or setting default spree these operators make coding a joyous spree whether changing values or ensuring a key they bring Simplicity as you'll soon see so welcome these operators in your coding decree for they streamline logic efficiently template litter rules with btic so fine creating Dynamic strings in just one line no more concatenation no more mess template literals bring expressiveness embedding expressions with ease and finesse making strings more Dynamic we confess so Embrace template literals and let them shine in your code they'll make strings lwi string padding enters with a method so Grand adding characters to Strings On Demand pad start and Pad end at your command making string manipulation effortlessly expand whether adding zeros or spaces to stand string padding ensures alignment so plan so welcome this method to your coding land for wi string padding your strings are well [Music] manned [Music] additional string Methods of Trio so bright starts with ends with trim All in sight handling strings with ease day or night these methods bring power oh so right checking beginnings and endings with might and trimming white space to keep things tight so dive into these methods with delight for they make handling strs a joyful life match all and includes in the string search game finding patterns and occurrences without shame making string searching a much simpler aim these methods bring efficiency to Proclaim with match all patterns in a row and includes four presents to know so Embrace these tools let your code flow in the world of strings they're a valuable show yes Arrow functions with syntax so Sleek preserving this context no longer Bleak in call acts and methods they uniquely speak making our code more elegant at its peak no more function or return their antique Arrow functions bring the Simplicity we seek so let your code fly with an arot technique for with arrow functions your code is unique default parameters are feature so kind providing all backs for peace of mind no more undefined checks we're no longer blind with default values our codes more refined making functions robust with less to remind default parameters make our code align so welcome the feature with an open mind for with default parameters simplest cities you'll [Music] [Music] find let's go number two rest and spread operator spreading their wings handling arrays and parameters among other things Gathering and dispersing without any string these operators make array manipulation s whether passing arguments or combining arrays rest and spread bring ease to all our days so Embrace these operators in your coding plays for they bring flexibility in so many function names a property so clear Anonymous or not the name appears no more mystery no more fear with function names clarities here in the world of debugging they are dear making function identification near so welcome this property with a cheer for with function names your code is cleared trailing commas in a definition neat making Version Control diff so sweet adding rearranging no missed beat trailing commas make code editing a tree in functions or arrays they find their seat making code more flexible without deceit so let's Embrace this change with a tweet trailing problemas make our code so complete object literals a syntax light shorthand properties computed names and sight making objects more concise without fright these enhancements bring structure to light no more verbosity no more clutter with enhanced literals our code can flutter so welcome this change with open arms and sheer for enhanced object lit rules make our code [Music] clear [Music] JavaScript classes a structured domain with Constructors and methods and inheritance for days building scaling code with Clarity to sustain classes make our coding Journey less mundane no more prototypes No More Mess classes bring order and elegance no less so Embrace this Paradigm and let it be known with JavaScript classes our code has grown symbols unique and immutable in their core ideal for non-colliding keys and so much more in objects and classes they help us explore unique properties without any uproar no collisions no conflicts they ensure making our object secure and pure so welcome symbols with a nod and a smile for they bring uniqueness mile after mile optional chaining a path so secure access nested properties with confidence pure no more errors no more detour with optional Ming our codes more mature whether dealing with objects or functions it's sure this operator makes our code endure so Embrace this syntax and let it be known with optional chaining no properties are alone object methods enhancing our tool set get own property descriptors from entries you bet making object manipulation a safer bet these methods expand our coding net with more control and Clarity we set to handle objects with less threat so welcome these additions they are here for with these object methods the end is near one more [Music] [Music] verse four of loop iteration made clean through arrays and strings it's Keen no more de Seas no more routine with four of our codes more Serene for each element it takes the scene making our Loops more streamline not mean so Embrace this Loop decide what's best you have multiple options for Loops to test maps and sets collections so fine unique values value pairs they align efficient and flexible they outshine making data storage and manipulation Divine Ms with their keys sets with their line both bring order both and Twine so welcome these structures let your code Shine for with maps and set your data's in line arrays from and of method so bright create arrays from values so tight from strings to sets they take flight making array creation of simpler sight whether spreading values or ensuring they're right these methods bring a ray creation to light so Embrace these tools in your coding mind for with from and of what a delight flat and flat map utility sore flatted nessed arrays and so much more mapping and flattening without any chore these methods make array manipulation Roar weather dealing with depths or mapping stores flat and flat MPP open the door so welcome these methods let your arrays explore for with flat and flat map your arrays won't be in this journey of XM script so vast we've explored features a cast so fast from variables to arrays the knowledge we've amassed will make our code future proof unsurpassed so let's keep learning let's keep our p Cas fast for with ecmascript our code will last in the world of JavaScript we're holding fast to the power of ecmascript Forever [Music] fast oh

View original source

https://www.youtube.com/watch?v=4JJ7L0koXEI