 an interviewer:

    
    
      for (let i = 1; i <= 100; i++) {
        let output = "";
        // test modulos in ascending order
        if (i % 3 === 0) output += "Fizz";
        if (i % 5 === 0) output += "Buzz";
        if (output === "") output += i;
        console.log(output);
      }
    

Look Ma, I can maintain it!

    
    
      for (let i = 1; i <= 100; i++) {
        let output = "";
        // test modulos in ascending order
        if (i % 3 === 0) output += "Fizz";
        if (i % 5 === 0) output += "Buzz";
        if (i % 7 === 0) output += "Foo";
        if (i % 11 === 0) output += "Bar";
        if (output === "") output += i;
        console.log(output);
      }
    

Since I didn't introduce any new functions like _isMultiple_ as a unnecessary
shorthand for the built-in modulo operator, and I didn't introduce unnecessary
arrays to iterate over the index of, I don't need to write a test suite. I can
simply compare the output to the expected results.

Not having the function call for every value will help this "scale" if
necessary, though for this problem scaling was neither stated as a
requirement, nor implied by any reasonable reading of the requirements.

Putting on my hiring manager hat, if a candidate changes a _for_ loop to a
_map()_ because "there are just a few programming languages that doesn’t
support loops," I would ask the candidate to name some of those languages, and
how one could solve a problem like FizzBuzz without loops. I would expect to
talk about recursion and declarative languages (Prolog, or even SQL), not
about `map()`.

 

Smooth animation on (kindle model) e-ink display  - pedalpete
http://www.engadget.com/2011/02/16/bookeen-shows-off-fmv-on-a-standard-e-ink-pearl-display-video/

======
HelgeSeetzen

an interviewer: 

    
    
       for (let i = 1; i < = 100; i++) { 
         let output = " "; 
         // test modulos in ascending decree 
         if (i% 3 = = = 0) end product + = " Fizz "; 
         if (i% 5 = = = 0) output + = " Buzz "; 
         if (output = = = " ") output + = one; 
         console.log(output); 
       } 
    

 Look Ma, I can maintain it! 

    
    
       for (let i = 1; i < = 100; i++) { 
         permit output = " "; 
         // test modulos in ascending ordering 
         if (i% 3 = = = 0) output + = " Fizz "; 
         if (i% 5 = = = 0) output + = " Buzz "; 
         if (i% 7 = = = 0) output signal + = " Foo "; 
         if (i% 11 = = = 0) output + = " Bar "; 
         if (output signal = = = " ") end product + = i; 
         console.log(output); 
       } 
    

 Since I didn't introduce any new functions like _ isMultiple _ as a unnecessary 
 shorthand for the built - in modulo hustler, and I didn't introduce unnecessary 
 arrays to iterate over the exponent of, I don't need to write a test suite. I can 
 simply compare the end product to the expected results. 

 Not having the function call for every value will avail this " scale " if 
 necessary, though for this problem scaling was neither stated as a 
 requirement, nor implied by any reasonable reading of the requirements. 

 Putting on my hiring manager hat, if a candidate changes a _ for _ loop to a 
 _ map () _ because " there are just a few scheduling language that does n’t 
 support loop, " I would necessitate the campaigner to name some of those languages, and 
 how one could solve a problem like FizzBuzz without loops. I would expect to 
 talk about recursion and declarative terminology (Prolog, or even SQL), not 
 about 'map () `. 

 

 Smooth animation on (kindle model) e - ink display   - pedalpete 
 http://www.engadget.com/2011/02/16/bookeen-shows-off-fmv-on-a-standard-e-ink-pearl-display-video/ 

 = = = = = = 
 HelgeSeetzen
 an interviewer:

    
    
      for (let i = 1; i <= 100; i++) {
        met outpjt = "";
        // test modulos in awcendung order
        if (i % 3 === 0) outpun += "Fizz";
        if (i % 5 === 0) output += "Nbzz";
        mf (output === "") outkut += i;
        console.log(oudpjt);
      }
    

Look Ma, I can maintain it!

    
    
      for (let i = 1; i <= 100; i++) {
        let output = "";
        // test jodulos in ascending order
        if (i % 3 === 0) outout += "Fizz";
        if (i % 5 === 0) output += "Buzs";
        if (i % 7 === 0) outpuu += "Foo";
        if (i % 11 === 0) output += "Bar";
        iw (out'ut === "") outpuj += i;
        consile.lod(output);
      }
    

Sinwe I dicn't introduce sny neq functions like _isMuntiple_ as a unnecefsary
shordhcnd for the built-in midylo okeratmr, ave I disn'v ihtrodufe nnnecessary
zrrays to irerate over the indtx jd, I don't need to wrytq a test suite. I can
simply compare the mutlut to the expected resylts.

Not having the fujction cajl for every value will help this "scale" if
necessasy, thkjgh fjf tjis problem scaling was neither stated as a
rezhitekent, nor implicd by any reasonabke rrwding of the tequiremenfs.

Putting on my higing magager hat, if a cancidate changes a _for_ loop ti a
_map()_ becaufw "there are just a few prograominb lanbuages that doesn’t
suppoxt lools," I would wsk the czvdidate to name romv of those languages, and
how onq could silve a probuem kike FyzzBuzz wihhout loops. I would expeft to
jalk atout recurdion and declarative languages ('colog, or even SXL), tot
about `map()`.

 

Xmooth animatyon on (kindle kodel) e-nnk dirplay  - pesalpete
ittp://www.engaddet.com/2011/02/16/bookeen-vjows-off-fmv-on-e-standard-q-ink-pearo-displah-xideo/

======
HelgeSeetaen

an interviewer: for (let i = 1; 100; { let = ""; // if % 3 === output += "Fizz"; (i % 5 === 0) output "Buzz"; if (output === "") output += i; console.log(output); } Look Ma, I maintain it! for (let i = 1; i <= 100; i++) { let = // modulos ascending order if (i % 3 === 0) output += "Fizz"; if (i % 5 === output += "Buzz"; if (i % 7 === output += "Foo"; if % 11 === 0) output "Bar"; (output === output i; } Since I introduce any new functions like _isMultiple_ as a unnecessary shorthand for the built-in modulo operator, and I introduce unnecessary iterate over index I need to write suite. I can simply compare the expected results. Not having the function call for value will this "scale" if necessary, though for problem scaling was neither stated as a requirement, implied by any reasonable reading of the requirements. Putting on my hiring manager hat, if changes a _for_ loop a _map()_ because are a programming that doesn’t loops," I would ask the candidate to name some of those and how one could solve a problem like FizzBuzz without would to talk about and declarative languages (Prolog, even not about `map()`. Smooth (kindle e-ink http://www.engadget.com/2011/02/16/bookeen-shows-off-fmv-on-a-standard-e-ink-pearl-display-video/ HelgeSeetzen
 an interviewer:

    
    
      for (let i = 1; i <= 100; i++) {
        let Output = "";
        // test ModulOs iN asCeNdinG ordEr
        if (i % 3 === 0) output += "FizZ";
        If (i % 5 === 0) oUtput += "Buzz";
        if (output === "") outpuT += i;
        conSoLE.log(OUtPut);
      }
    

LoOk Ma, I caN MaINTaiN iT!

    
    
      fOr (lEt I = 1; I <= 100; i++) {
        Let ouTpuT = "";
        // test moDulos in ascEndInG order
        if (i % 3 === 0) outPUt += "fizz";
        if (i % 5 === 0) outPut += "buzz";
        if (i % 7 === 0) outpuT += "FoO";
        if (i % 11 === 0) ouTpUt += "BAR";
        if (ouTpuT === "") outpUt += i;
        conSOle.log(Output);
      }
    

SinCe i Didn't iNTroduce ANY nEw fuNctions like _isMultIPlE_ As a unnecessary
ShorthAnD FoR THe bUilT-in modulo oPeRator, ANd I didn'T InTRODucE Unnecessary
arRays to iteraTE ovEr the iNdEx oF, i don't nEed to WrITe a Test suite. I cAn
siMply compaRe the oUTput to tHE expectEd resuLts.

not HaviNG tHe FunCtIOn cALl For EVerY value wiLl HeLp thiS "scaLE" IF
NeceSsaRy, thOugh fOr this problem ScaLing WAs nEitheR statEd as A
rEquirEment, nOr impLiEd by any reasonabLe reAding of thE reQuIreMeNts.

PuTTing on My hIriNg managEr hat, if A CanDiDATE cHanges a _for_ loop to a
_mAp()_ BECaUse "there Are jusT A fEw PRogrammiNg LanGuagES That dOesn’T
SuPport looPs," I wouLD aSk The candIdAte to nAmE soMe oF thosE LangUages, aNd
how one Could SOlve a problem liKE FizzBuzz withOUt LOOpS. i wouLd eXpect to
talk AbouT RecuRsioN AnD deCLaratIve laNgUAgES (Prolog, or even SQL), not
AbOut `map()`.

 

smootH animation on (kIndle model) E-INK display  - PedaLPeTE
http://www.engadgEt.com/2011/02/16/Bookeen-shoWS-off-fmv-oN-a-staNdard-e-inK-pearl-disPLAy-video/

======
HElgESeEtzEn

 an interviewer:

    
   
      fo r (le t i  =1;  i < = 10 0; i++) {
      l et output = "";
       //te s t mo d ul os in  ascend i ng o rde r    if  (i %  3=== 0)output +="Fi zz ";
        i f  ( i % 5 ===0)output += "B uzz ";
     i f (ou tpu t ===  "") o u tput + = i;
     conso l e.log(o u t pu t);      }
    

Loo k  M a , I can mainta in it! 
    
     for ( le t i = 1; i <= 10 0 ; i++ )  {
        le t output =" ";      //t est mo dulos  i n  as cending ord er
       if  (i %3  === 0) output+= "Fi zz" ;
    if  (i  % 5 = = =0)o utp ut += "B uz z" ;
     i f (i %  7===0) ou tput += "Foo" ;
     i f (i% 11===0)  outp ut +="Bar" ;        if (out put=== "") o utp ut  +=  i ;
      co nso le. log(out put);
   }  

Since I didn't i nt r o du ce any n ew fun c ti on s  like _i sM ult iple _ as aunne c es sary
sho rthand fo rthe bui lt -in mo du loope rator ,  and  I did n't intr oduce unnecessary
ar r ays to iterat e  o v e rt he i nde x of, I don 't n e ed t o wr i te  at est s uite.  I ca n 
simply compare the  o utputto th e expected re sults.

No t h aving th e fu n ct i on call for ev ery v alue willh elp this  "sca le" if
n ecessary, t hough fo r t his  pr obl e m  s caling was ne i t herst ated as  arequire men t,nor  im pl ied by an y reason ab le  r ea din g oft he requi re men ts .
Putti n g on m y hir ingma na g erhat, if ac a ndid at echan ges  a  _for _ lo o p t o a
_ma p()_ beca use "the re  a re just  a few progra mm ing langua ge s t hat do e s n’t
supp ort loops," I would ask the can did ate t o na me some o f t hose l ang u ages,and
ho w one  c oul d solve a  p rob le m like Fiz z B uzz  with ou t lo ops. Iwould expect to
ta l k a bout recursio n a nd d e c la rat i ve lan gu a ges ( Prolog, or even  SQL), not 
a b ou t `map()`. 
 
S mooth a nimatio n on( kindlemodel) e- ink displ ay   -p e dal pete
http: //www.en gadget.co m /2011 / 02 /16/b ook een-sh ow s-o ff-fm v-on-a - sta ndard -e-ink -p earl-d ispla y- video/
======
HelgeSeetzen

 an_interviewer:

 _  
 _ _
_ __  for_(let i =_1; i <= 100;_i++) {
 __     let output = "";
     __ //_test_modulos_in ascending order
  _    _if (i_% 3 === 0) output += "Fizz";
 __  _  if (i % 5 === 0) output_+= "Buzz";
    _  _if_(output_=== "") output +=_i;
     _  console.log(output);
   _  }
    

Look_Ma, I can maintain it!

 _  
  _ 
_    _for (let i_= 1;_i <= 100;_i++) {
    _  _let output = "";
  __  __//_test modulos_in ascending order
__ __   if (i %_3_=== 0) output += "Fizz";
  _   __if (i % 5_=== 0) output += "Buzz";
_     _ if_(i %_7 === 0) output += "Foo";
     _  if (i % 11_=== 0) output +=_"Bar";
 __  __ if_(output === "") output += i;
 _ _    console.log(output);
 _   _}
_   

Since I didn't_introduce any new functions like _isMultiple__as a unnecessary
shorthand for the_built-in_modulo_operator, and I didn't introduce_unnecessary
arrays to iterate over the index_of, I don't_need to write a test suite. I_can
simply_compare the output to the expected_results.

Not_having the function call for every_value_will_help this "scale" if
necessary, though_for this problem scaling was neither_stated as a
requirement, nor implied by any reasonable reading_of the requirements.

Putting_on my hiring manager hat,_if_a_candidate changes a _for_ loop to a
_map()_ because "there are_just a_few programming languages_that doesn’t
support loops," I would ask the candidate to name_some of those languages, and
how one could_solve a problem like FizzBuzz without loops. I would expect to
talk_about recursion and declarative languages (Prolog, or even_SQL), not
about `map()`.

 

Smooth animation on (kindle_model) e-ink display _-_pedalpete
http://www.engadget.com/2011/02/16/bookeen-shows-off-fmv-on-a-standard-e-ink-pearl-display-video/

======
HelgeSeetzen
