Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript try catch

var someNumber = 1;
try {
  someNumber.replace("-",""); //You can't replace a int
} catch(err) {
 console.log(err);
}
 
PREVIOUS NEXT
Tagged: #javascript #catch
ADD COMMENT
Topic
Name
1+3 =