1'use strict'; 2function fnA() { 3 let cnt = 0; 4 5 try { 6 cnt++; 7 throw new Error('boom'); 8 cnt++; 9 } catch (err) { 10 cnt++; 11 } finally { 12 if (false) { 13 14 } 15 16 return cnt; 17 } 18 cnt++; 19} 20 21function fnB(arr) { 22 for (let i = 0; i < arr.length; ++i) { 23 if (i === 2) { 24 continue; 25 } else { 26 fnE(1); 27 } 28 } 29} 30 31function fnC(arg1, arg2) { 32 if (arg1 === 1) { 33 if (arg2 === 3) { 34 return -1; 35 } 36 37 if (arg2 === 4) { 38 return 3; 39 } 40 41 if (arg2 === 5) { 42 return 9; 43 } 44 } 45} 46 47function fnD(arg) { 48 let cnt = 0; 49 50 if (arg % 2 === 0) { 51 cnt++; 52 } else if (arg === 1) { 53 cnt++; 54 } else if (arg === 3) { 55 cnt++; 56 } else { 57 fnC(1, 5); 58 } 59 60 return cnt; 61} 62 63function fnE(arg) { 64 const a = arg ?? 5; 65 66 return a; 67} 68 69module.exports = { fnA, fnB, fnC, fnD, fnE }; 70