sudo rpi-update
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install vim -y
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Q. Create an object, myJSON, with one function, `stringify` that will take one parameter and stringify it like `JSON.stringify` does. | |
//Object types can be: | |
// Object | |
// Array | |
// Number | |
// String | |
// Boolean | |
var myJSON, thingToStringify; |
You're given a JSON array of Illinois Cities. With this list, your task is to build out a function that accepts a string and returns back cities that contain the given characters. The function should accept another parameter to limit the amount of matches it returns. The results should be returned in alphabetical order with priority given to matches that start with the characters.
Use your language or framework of choice, and store the data in any fashion you'd like, as long as it's web friendly.
[
"Summit", "Palatine", "Naperville", "North Chicago", "Springfield",
"Arlington Heights", "Oak Park", "Moline", "Calumet City", "Ottawa",