Map the Debris challenge

Question

Given GM and radius r of Earth, take an array arr and return a new array where each item has corresponding key orbitalPeriod and its value pair. The value should be rounded to the nearest number.

Examples

``orbitalPeriod([{name : "sputnik", avgAlt : 35873.5553 …``

Make a Person Challenge

Challenge

Make an object that has 6 methods that get and set first name, last name and full name.

``````getFirstName()
getLastName()
getFullName()
setFirstName(first)
setLastName(last)
setFullName(firstAndLast)
``````

One solution

``````var Person = function(firstAndLast) {
// Only change code below this line
// Complete the method below and implement the …``````

Arguments Optional Challenge (feat: use currying in Javascript)

Challenge

Given a function takes either one or two arguments, return a function if argument is one, otherwise return sum of two numbers. If any of arguments is non-number, return undefined.

Example

``````addTogether(2)(3) // 5
``````

Everything Be True

Challenge

Given the first argument, an array collection, whose each item is an object, check if second argument pre is truthy against every item in the array.

Example

``truthCheck([{"user": "Tinky-Winky", "sex": "male"}, {"user": "Dipsy", "sex": "male"}, {"user" …``

Find the most repeated words with python

Motive

I'm currently watching some python challenge course, and as a person who uses python I began to wonder how it could be solved.

Easy way

To follow DRY principle, one should be encouraged to benefit what's already laid out for us.

Let's make use python's built-in module, …