Disclaimer: This can be a Weblog i made with the intention of reinforcing my data in javascript. I simply thought sharing my blogs may be useful for somebody since they're written in tagalog (largely in casual fashion). Incase of Misinformation I will not be answerable for it and if in case you have the time you possibly can touch upon the weblog to deal with the error. Relaxation assured I am all the time attempting my finest to be as correct as attainable
Ano ngaba ang Break Assertion sa Javascript?
Yung break na key phrase ginagamit siya sa mga loops,change para ma skip ang execution… one thing like that
Sa tingin ko yung finest means para ma-understand niyo yung break assertion ay to point out it to you nalang
Break Assertion sa whereas loop (additionally works on for loops ofcourse)
Naterminate yung execution kasi na execute yung break sa block ng if situation due to this fact 1,2,3,4 nalang yung na console.log.
one factor to notice that if yung whereas loop ay nasa loob ng perform tapos could “Break” sa loob ng whereas loop. Yung impact ng Break non ay enclosed lang sa whereas loop and di pwedeng maapektuhan yung execution ng perform
Break on change assertion
Break sa change assertion na kapag na fullfill na yung case e-execute nayung codeblock, on this case it’s `console.log(‘x is 2’) then break na in return be break na yung change assertion
as per normal oversimplified and baka inacurrate data nasulat ko so this is a greater in depth documentation (english)
https://developer.mozilla.org/en-US/docs/Internet/JavaScript/Reference/Statements/break
Extra tagalog Javascript Studying Sources:
https://javascript-in-tagalog.netlify.app