/interview-prep

Repository for Interview prep questions

Primary LanguageJavaScript

Interview Prep

A repo for storing solutions to code based interview questions

JavaScript

  1. digitalClock.js
    • Accept an array of minutes, return strings in XX:XX format
  2. interviewArrays.js
    • Accept a non-fixed length of nested arrays, and return the array with each name capitalized.
    • Example input: `let names = ['paul', ['george', ['ringo', ['john', ['yoko']]]]]
    • Example output ['Paul', ['George', ['Ringo', ['John', ['Yoko']]]]]
  3. repeat.js
    • Accept 2 inputs, the value and the number of times to repeat the value
    • Output the repeated value, with an empty string outputted for a negative repeat value