Giter Club home page Giter Club logo

lots-of-functions's Introduction

Lots of Functions

Write your functions in a single file called lots-of-functions.js

sayHi

Write a function called sayHi that takes in a name string and adds "Hi, " before the name. Return the newly modified string.

bigString

Write a function called bigString that takes in 2 strings and returns which one is bigger. If the strings are equal in size, tell the user and prints both.

bigNumber

Write a function called bigNumber that takes in 2 numbers and returns which one is greater. If the numbers are equal tell the user.

fiveMore

Write a function called fiveMore that takes in an array of numbers and adds 5 to each odd number then returns the updated array.

arraySummer

Write a function called arraySummer that takes in an array of numbers and adds each number in the array together. Return the total.

everyDivisible

Write a function called everyDivisible that takes in a number n that is less than 10 and then prints every number less than or equal to 100 that is divisible that number n.

For example, if n = 7

Your function would print:

7
14
21
28
35
42
49
56
63
70
77
84
91
98

lots-of-functions's People

Contributors

glf30 avatar meshas32 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.