This project contain a Programing challenge in JavaScript and a Database challenge using MySQL for Lexart Labs companie.
Programing Challenge
Create an algorithm that traverses a one-dimensional array containing letters and numbers:["a", 10, "b", "hello", 122, 15] .
- Obtain an array containing only letters.
- Obtain an array containing only numbers.
- Obtain the largest number from the previous array.
Database Challenge
Download the World database from the following link: https://dev.mysql.com/doc/index-other.html and import it into a database management system. https://dev.mysql.com/doc/index-other.html and import it into a database management system.Create a table called "AverageLifeExpectancy" that will contain the following information:
LifeProm | Region |
---|---|
70 | South America |
74 | North America |
59 | Asia |
- JavaScript
- MySQL
- Jest
Install the Jest dependency running the follow comand npm install
To run the tests use the script npm run test