Giter Club home page Giter Club logo

dataarttasks's Introduction

Frontend test tasks

  1. Show the list of all countries from API (https://restcountries.eu/#api-endpoints-all). While countries are not loaded yet show loader. Display country as a card with next info:
  • flag

  • country name

  • capital

  • region

  • population

  • list of all timezones that country has (example: "Timezones: UTC+07:00, UTC+08:00, UTC+10:00")

  • list of all currencies for the country ( code + symbol, example: "Currencies: USD $, EUR โ‚ฌ")

  • list of country name translation - only for languages "de", "es", "it" (example: "Translations: de: Ukraine, es: Ucrania, it: Ucraina ")

    Add sidebar on the left side of the page. It should contain radiobuttons for filtering countries by region. List of regions: Africa, Americas, Asia, Europe, Oceania.

    Behaviour: when I click on radiobutton with label Europe, I want to see the list of countries only from Europe region (Check https://restcountries.eu/#api-endpoints-region).

Light variant: to simplify task, you can use jQuery. If you don't now how to work with xhr requests in JavaScript, instead of loading countries from API, you can create global array with countries in the file and work with it.

Task2

  1. There is an array of users:
  const users = [{
    id: 'as23'
    nick: 'Octopus',
    firstName: 'John',
    LastName: 'Dou'
   }, {
    id: 'as25'
    nick: 'Star',
    firstName: 'Andy',
    LastName: 'Lee'
   }, {
    id: 'as77'
    nick: 'Wally',
    firstName: 'Liza',
    LastName: 'Corty'}]

Property 'id' of all array elements is always unique (id: 'as23'). Transform this array into an object where object's property key is this id, and value is the array item itself.

{ 'as23' : {}}

dataarttasks's People

Contributors

andreybaglai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.