fork download
  1. // printPattern(5)
  2. printPattern(3)
  3.  
  4.  
  5.  
  6. function printPattern(n){
  7. if(n % 2 === 0 || n <=3){
  8. console.log("sahi hai")
  9. }
  10. }
Success #stdin #stdout 0.03s 16980KB
stdin
Standard input is empty
stdout
sahi hai