21. What will be the output of the following code?

var str = "Hello";
str.match("jello");

  • null
  • undefined
  • empty string

22. What will be the output of the following code?

try {
Number(5).toPrecision(300)
} catch(e) {
console.log("There was an error")
}

  • RangeError
  • 5
  • e
  • “There was an error”

Leave a Reply