Code :
//Syntax Errors
//Incorrect sytax those are called syntax errors, If we devaite from the
//rule required to form a syntax
//Eg: console.log("Hi) -- SyntaxError: Invalid or unexpected token
//Eg : console.log("Hi" -- SyntaxError: missing ) after argument list
//Runtime Errors
//Also called exceptions, occur during the interpretation
//console.lo("Hi") -- TypeError: console.lo is not a function
//Logical Errors
//Error which is not syntax error or runtime error. they occur if we have a
//mistake in the logic.
try{
azhar
}catch(e){
console.log("The exception occured is "+e.description)
console.log("The exception name is "+e.name)
console.log("The exception stack is "+e.stack)
}finally{
console.log("I always get executed")
}
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
► 1. Javascript - https://youtube.com/playlist?list=PLO2l2fYgN805CokP5kaOWOhqP3-2vyXdS
► 2. Puppetter - https://youtube.com/playlist?list=PLO2l2fYgN805E5fbSnvtFM3K9c92ePS8e
► 3. Cypress - https://youtube.com/playlist?list=PLO2l2fYgN807KRpLfvvrqa1MSX8XdYxkV
► 4. Tech works - https://www.youtube.com/watch?v=ZNAdt4Oe5Sw&list=PLO2l2fYgN807CQ5H3ER__7x7LeEA10T2Z
► 5. Vbscript Basics To Advanced - https://www.youtube.com/watch?v=z_ctZDolyG0&list=PLO2l2fYgN805CuD-90ESrxRqX__-YJMym
► 6. Jmeter - https://youtube.com/playlist?list=PLO2l2fYgN806eNr5cr-TMTX8xGTW7Mtcn
► 7. Excel - https://youtube.com/playlist?list=PLO2l2fYgN806piZ2fD0bYNi3ExoPJlcqj
► 8. Appium - https://www.youtube.com/playlist?list=PLO2l2fYgN806V_9-wL-dpmrGg8dhPPONK
► 9. Shares - https://youtube.com/playlist?list=PLO2l2fYgN806ySmKp3sskJW0ByJalmPE2
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#errorsinjavascript
#syntaxruntimelogical
#javascript