DEV Community

Jocelyne1124
Jocelyne1124

Posted on

Discussion 10

There are many different ways one could apply a function to real life situations. Our morning routine could be one of these things. From the moment we open our eyes to the moment we start our scholar day or begin our labor. Another thing we could convert into a function is making a meal we could gather the items that will be used to make our dinner and the way in which we prepare and combine these items could change the outcome of the finished product. When we ask someone for help we can also compare this to a function, depending how easy or complex we ask questions or give orders to help us with our tasks we will receive a better output. Another daily task we can put into a function is on our daily commutes, there are things that will always be the same(constants) such as the street lights we might encounter along in out drive or things that change (variables) such as the amount of traffic that will be out on that day. We could also define our daily workouts as a function. Pretty much everything and anything we do in a day can be called out as a function. Even when we are sad. for example we can make an if else statement that suggests if something is negative if would result in sadness.

Top comments (0)