https://github.com/pomidorum1989/js-epam-task
Test task for EPAM Systems mentoring program
https://github.com/pomidorum1989/js-epam-task
interview-questions javasript
Last synced: about 1 year ago
JSON representation
Test task for EPAM Systems mentoring program
- Host: GitHub
- URL: https://github.com/pomidorum1989/js-epam-task
- Owner: pomidorum1989
- Created: 2018-05-04T13:16:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T03:27:23.000Z (almost 2 years ago)
- Last Synced: 2025-02-03T15:53:22.406Z (over 1 year ago)
- Topics: interview-questions, javasript
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Programming Challenges
This repository contains solutions to three JavaScript programming problems. Each problem is designed to test and improve your understanding of JavaScript concepts, including arrays, objects, functions, and sorting algorithms.
## Table of Contents
1. [Problem 1: Random Number Array Manipulation](#problem-1-random-number-array-manipulation)
2. [Problem 2: Calculate Elapsed Seconds of the Day](#problem-2-calculate-elapsed-seconds-of-the-day)
3. [Problem 3: Sort Object Properties by Values](#problem-3-sort-object-properties-by-values)
## Problem 1: Random Number Array Manipulation
### Description
Generate an array of 10 random integers between 0 and 9. Find the largest number in the array, remove it, and store it in another array. Continue this process until the original array has fewer than 8 elements. Finally, multiply all the numbers in the second array and output the result.
## Problem 2: Calculate Elapsed Seconds of the Day
### Description
Write a function that calculates the number of seconds that have elapsed since the beginning of the current day. Return the result in seconds and print it to the console.
## Problem 3: Sort Object Properties by Values
### Description
Write a program that sorts the properties of an object based on their values in ascending order and prints the sorted property names to the console.
### Run Command
```sh
npm run task-1
npm run task-2
npm run task-3