How many lightsasbers do you own? – Codewars

How many lightsasbers do you own? – Codewars

Today I completed the “How many lightsabers do you own?” kata on Codewars!

It didn’t take long to see what to do: if a given name is equal to ‘Zach’, return 18; otherwise, return 0. Knowing this, I wrote the code and it worked!

And don’t forget: don’t hog all the lightsabers!

Returning Strings – Codewars

Returning Strings – Codewars

Today I completed the “Returning Strings” kata on Codewars!

Looking at the code, I could easily see what to do: write a return statement that returns a string in this format: “Hello, <name> how are you doing today?” Knowing this, I wrote the statement and it worked

Will you make it? – Codewars

Will you make it? – Codewars

Today I completed the “Will you make it?” kata on Codewars!

The code called for a function that took the miles away from a gas pump, a car’s miles/gal, and how many gallons of fuel are left. Based on this data, it should return true if the car would make it to the pump and false if otherwise. So I went into the code, wrote the function, and it worked!

The highest profit wins! – Codewars

The highest profit wins! – Codewars

Today I completed the “The highest profit wins!” kata on Codewars!

I had to make an array that returns the largest and smallest numbers from a provided array. Not knowing how to do this, I looked up suggestions and found Math.min.apply and Math.max.apply. Using these two, I wrote a simple return statement and it worked!

When you don’t know how to do something, look up a guide to help you!

Stay Hydrated! – Codewars

Stay Hydrated! – Codewars

Today I completed the Stay Hydrated! kata on Codewars!

Looking at the code, it was easy to see what I had to do: multiply 0.5 by the provided hours and return the rounded result. Thus, I wrote the code to do this, and it worked!

Remember: stay hydrated!

Codecademy – Java

Codecademy – Java

Eugene has learned how Java is a key programming language. Eugene learned about databases and how to use them, conditionals and control flow, arrays and array lists, and so much more! Java can be used for software development, mobile applications, and large systems development.

Bug Zero Icon

OUR NEWSLETTER