Skip to content
View Luckerella's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report Luckerella

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. [Map The Debris] Return a new array ... [Map The Debris] Return a new array that transforms the elements' average altitude into their orbital periods (in seconds). The array will contain objects in the format {name: 'name', avgAlt: avgAlt}. The values should be rounded to the nearest whole number. The body being orbited is Earth. The radius of the earth is 6367.4447 kilometers, and the GM value of earth is 398600.4418 km3s-2. #algorithm #intermediate #freecodecamp
    1
    function orbitalPeriod(arr) {
    2
      const GM = 398600.4418;
    3
      const earthRadius = 6367.4447;
    4
    
                  
    5
      for (let i = 0; i < arr.length; i++) {
  2. [Palindrome Checker] Return true if ... [Palindrome Checker] Return true if the given string is a palindrome. Otherwise, return false. A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing. Note You'll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for palindromes. We'll pass strings with varying formats, such as "racecar", "RaceCar", and "race CAR" among others. We'll also pass strings with special symbols, such as "2A3*3a2", "2A3 3a2", and "2_A3*3#A2". #freecodecamp #finalproject
    1
    function palindrome(str) {
    2
      // Good luck!
    3
      const arr = str.toLowerCase().split("");
    4
      const newArr = arr.filter((val) => val.match(/[a-z0-9]/));
    5
      const revArr = [...newArr];
  3. Luckerella.github.io Luckerella.github.io Public

    HTML