Code Monkey home page Code Monkey logo

fizzbuzz's Introduction

My Classic FizzBuzz

This was a classic practice with results displayed in our console.log
Give it a shot! To try out this excercise:

  1. fork this repo
  2. git clone the url into appropraite file
  3. checkout in answer branch
  4. do the challenge on your text editor of choice
  5. commit your answers in answer branch
  6. issue pull request with any feedback
  • Challenge: Console log number 1-100 replace numbers % 3 === 0 with Fizz replace numbers % 5 === 0 with Buzz replace numbers % 3 AND 5 with FizzBuzz Console log an array with all conditions met.

Link to project: ##.com

alt tag

How It's Made:

Tech used: HTML, CSS, JavaScript,

I am eager to learn everything JavaScript and hope to one day come close to mastering this language.

Starting with more focused and smaller projects allowed me to embrace versatile functions and all its capabilities. In doing so, I was also able to strength my CSS skills while diving deep into focus mode on very basic fundamental functions.

Optimizations

**

Cached assets

Lessons Learned:

Conditionals have always been a favorite of mine from the beggining. I feel comfortable using conditionals and enjoy utilizing ternary statements for that wow i wrote that? moment.

I also learned that although JS has hoists for functions, the main way program language is read is from top to bottom. This applies within a scope as well. The conditionals for each Fizz and Buzz worked but I struggled in displaying FizzBuzz on my console.log because I was not thinking about the way the computer will read within my function scope. Which is as always: top to bottom. It wasn't until it put the AND && conditional of FizzBuzz on the top of my list of conditionals, was the console able to read and return the desired output.

fuck yesss!

fizzbuzz's People

Contributors

tencho992 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.