Problem One
You’re writing a piece of server side code that searches for books based on a search keyword. Write a function that takes in two parameters: a search keyword (i.e. “worlds”) and an array of Objects with the following fields and example values:
{
title: “Candide”,
description: “Satire of the concept of living in the best of all possible worlds”,
author: “Voltaire”
}
Your function should search through all these Objects and return an array of the Objects which contain the keyword in either the title, description, or author. For example, the above Object would be returned in this array, as we searched the keyword “worlds” which is found in the description.
Problem Two
2) One of the most important tools we’ll be using in React is the JavaScript .map() function, which allows us to iterate through an array and return a new array whose values are modified in some way based on the original. For example, we could map through the array [0, -2, 7, 8] and use .map() to return a new array that adds 2 to each of those values, i.e. it returns [2, 0, 9, 10]. For more information, check out this link.
Assume that you’re working for a music software company where each user has an array of song Objects associated with them. Each Object would be of the form
{
title: “The House That Heaven Built”,
artist: “Japandroids”,
genre: “Rock”,
album:
{
title: “Celebration Rock”,
label: “Polyvinyl”
},
plays: 9001
}
Alas, someone released a virus where if the album’s label was “Polyvinyl”, it’s now been changed to “hackerL33TzRec0rd$”! Write a function that takes in an array of these Objects, and uses .map() to return a new array of Objects where any songs that were affected by the virus (i.e. had “Polyvinyl” changed to “hackerL33TzRec0rd$”) are fixed. Of course, if an Object wasn’t hit by the virus, it should be unchanged in your new array.
Hello, this is definitely possible, and i can code both of these functions in ~30 minutes and i can start right now. If you are interested in working with me, feel free to message me and i will try to help immediately.
Thanks, Milan
*****Hello, dear!!!*****
I have read your description carefully.
I can handle it with full confidence and have already done this type of projects. Please give me an opportunity to work with you.
Das Control Center des XAMPP - Apache und MySQL funktioniert ... Zuerst brauche ich das Terminal, damit ich den o.g. Befehl auch ausführen kann. ... Unter Mac OS X habe ich 2 Möglichkeiten, wo ich meine Webseiten ablege, um sie ..... Ich ha
I can complete these small JavaScript tasks within the next few hours upon hire. I've been developing in JavaScript for many years now, and am competent to complete to complete this assignment. I'm familiar with ES6 which includes the .map() function. :)
I worked on similar projects by the past. I did a client/server communication system with queries like this. Client-side was developed in javascript and I had some functions that fit to your needs.
Hello,
by your description, both problems seems very easy to solve, using some of the ES6+ native functions (like the .map()).
If you hire me, I'll deliver the functional code to you in under a few minutes. Fell free to contact me for more info.