Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript try catch

try {
  const test = 'string1'
  console.log(test)
  
  test = 'string2'
  console.log(test)
  
} catch (e) {
  console.log(e.stack) 
}
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #javascript #catch
ADD COMMENT
Topic
Name
6+4 =