The keyword ______ is used to specify a block of code to be executed, if the same block that it is directly proceeding does not get executed.
- break
- continue
- return
- finally
The keyword finally is used to specify a block of code that will be executed regardless of whether an exception is thrown or not in a try...catch block. It ensures that cleanup code is always executed.
Loading...
Related Quiz
- Which data type is NOT available in JavaScript?
- Considering browser compatibility, which array method would you avoid in Internet Explorer 8?
- How does event looping handle while(true) in Node.js environments?
- What is the purpose of the this keyword inside a constructor function?
- Which statement is true regarding function scope in JavaScript?