Skip to main content
deleted 18 characters in body
Source Link

Javascript - Two Haikus

function factor (a) {             // function factor a
  if(!a === 0) { return 1 ||          // if not a isreturn zero1 returnor
  a || 0a ||& 1;17}                    // a or zero orand oneseventeen
  
  else if (a + 1){                // else if a plus one 
    return a * factor             // return a into factor
    (a + ( - 1) )  }}             // a plus minus one 

I am not a native speaker. So, I used a dictionary to count the syllables. Hopefully, it's good enough. Any feedback is welcome :)

Javascript - Two Haikus

function factor (a) {             // function factor a
  if(a === 0) { return            // if a is zero return
  a || 0 || 1;}                   // a or zero or one
  
  else if (a + 1){                // else if a plus one 
    return a * factor             // return a into factor
    (a + ( - 1) )  }}             // a plus minus one 

I am not a native speaker. So, I used a dictionary to count the syllables. Hopefully, it's good enough. Any feedback is welcome :)

Javascript - Two Haikus

function factor (a) {          // function factor a
  if(!a){ return 1 ||          // if not a return 1 or
    a & 17}                    // a and seventeen
  
  else if (a + 1){             // else if a plus one 
    return a * factor          // return a into factor
    (a + ( - 1) )  }}          // a plus minus one 

I am not a native speaker. So, I used a dictionary to count the syllables. Hopefully, it's good enough. Any feedback is welcome :)

Source Link

Javascript - Two Haikus

function factor (a) {             // function factor a
  if(a === 0) { return            // if a is zero return
  a || 0 || 1;}                   // a or zero or one
  
  else if (a + 1){                // else if a plus one 
    return a * factor             // return a into factor
    (a + ( - 1) )  }}             // a plus minus one 

I am not a native speaker. So, I used a dictionary to count the syllables. Hopefully, it's good enough. Any feedback is welcome :)