Ad

:3

Code
Diff
  • function returnhundred() {
      let P = "B"
      let O = "="
      let r = "="
      let N = "D"
      if (P+O+r+N === "B==D") {
        return 100
      }
    }
    • function returnhundred() {
    • //return 100 by lucky O_o
    • var n=Math.floor(Math.random()*100)+100
    • while(100){
    • try{
    • return return100(n)
    • }
    • catch(e){
    • return returnhundred()
    • }
    • let P = "B"
    • let O = "="
    • let r = "="
    • let N = "D"
    • if (P+O+r+N === "B==D") {
    • return 100
    • }
    • }
    • function return100(n){
    • console.log("Try to return",n)
    • if(n!=100) throw Error("It's NOT 100")
    • return 100
    • }