typeerror 3a

Solutions on MaxInterview for typeerror 3a by the best coders in the world

showing results for - "typeerror 3a"
Emma
02 Jan 2021
1try {
2  throw new TypeError('Hello', "someFile.js", 10)
3} catch (e) {
4  console.log(e instanceof TypeError)  // true
5  console.log(e.message)               // "Hello"
6  console.log(e.name)                  // "TypeError"
7  console.log(e.fileName)              // "someFile.js"
8  console.log(e.lineNumber)            // 10
9  console.log(e.columnNumber)          // 0
10  console.log(e.stack)                 // "@Scratchpad/2:2:9\n"
11}
Isabell
02 Sep 2018
1try {
2  null.f()
3} catch (e) {
4  console.log(e instanceof TypeError)  
5  console.log(e.message)               
6  console.log(e.name)                  
7  console.log(e.fileName)              
8  console.log(e.lineNumber)            
9  console.log(e.columnNumber)          
10  console.log(e.stack)                 
11}
Yannis
05 Aug 2020
1try {
2  null.f()
3} catch (e) {
4  console.log(e instanceof TypeError)  
5  console.log(e.message)               
6  console.log(e.name)                  
7  console.log(e.fileName)              
8  console.log(e.lineNumber)            
9  console.log(e.columnNumber)          
10  console.log(e.stack)                 
11}
120
13
similar questions
queries leading to this page
typeerror 3a