Learn Javascript Here!!!(updated) - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Learn Javascript Here!!!(updated) (712 Views)
| Learn Javascript Here!!!(updated) by TeenWeb(op): 9:44am On Jan 06, 2016 |
Tytorial will b dropped soon stay tuned |
| Re: Learn Javascript Here!!!(updated) by tosineben2222: 5:22pm On Jan 07, 2016 |
please can any webmaster kindly give a solution to this java programming language Create a function fizzBuzz to return 'Fizz', 'Buzz', 'FizzBuzz', or the argument it receives, all depending on the argument of the function, a number that is divisible by, 3, 5, or both 3 and 5, respectively. with the test escribe("Fizz Buzz tests ", function() { it("should return `Fizz` for number divisible by 3", function() { expect(fizzBuzz(3)).toBe('Fizz'); }); it("should return `Buzz` for number divisible by 5", function() { expect(fizzBuzz(5)).toBe('Buzz'); }); it("should return `FizzBuzz` for 15", function() { expect(fizzBuzz(15)).toBe('FizzBuzz'); }); it("should return `FizzBuzz` for 45", function() { expect(fizzBuzz(45)).toBe('FizzBuzz'); }); it("should return `FizzBuzz` for 90", function() { expect(fizzBuzz(90)).toBe('FizzBuzz'); }); it("should return `Fizz` for 63", function() { expect(fizzBuzz(63)).toBe('Fizz'); }); it("should return 7 since its indivisible by 3 and 5", function() { expect(fizzBuzz(7)).toBe(7); }); it("should return 101 since its indivisible by 3 and 5", function() { expect(fizzBuzz(101)).toBe(101); }); }); EntclassBlog TeenWeb lalasticlala fp material cuz i need help |
| Re: Learn Javascript Here!!!(updated) by EntclassBlog(m): 9:19pm On Jan 07, 2016 |
tosineben2222:Thats a php lang <? php echo="(its a php lang); ?> |
| Re: Learn Javascript Here!!!(updated) by tosineben2222: 11:52pm On Jan 07, 2016 |
then what should i do pls help am begging u |
| Re: Learn Javascript Here!!!(updated) by tosineben2222: 11:55pm On Jan 07, 2016 |
this is what i did function fizzBuzz(){ for(var i=1;i<=100;i++){ if(15%5 === 0 && 15%3 === 0){ return('FizzBuzz'); } else if(63%3 === 0){ return('Fizz'); } else if(20%5 === 0){ return('Buzz'); }else if (101||3&&5){ return(101); } } } but dis is what i keep on getting Total Specs: 8 Total Failures: 5 1 . Fizz Buzz tests should return `Fizz` for number divisible by 3 Expected 'FizzBuzz' to be 'Fizz'. 2 . Fizz Buzz tests should return `Buzz` for number divisible by 5 Expected 'FizzBuzz' to be 'Buzz'. 3 . Fizz Buzz tests should return `Fizz` for 63 Expected 'FizzBuzz' to be 'Fizz'. 4 . Fizz Buzz tests should return 7 since its indivisible by 3 and 5 Expected 'FizzBuzz' to be 7. 5 . Fizz Buzz tests should return 101 since its indivisible by 3 and 5 Expected 'FizzBuzz' to be 101. pls help me |
Learn Html5 Css And Javascript Here Live • Let's Learn Javascript • I Want To Learn Javascript And Css • 2 • 3 • 4
Do I Need To Register An Ad Classified Website With Corporate Affairs Commission • Register & Login Menu • Fully Approved Non-hosted Nigeria Adsense Account Forsale