- A React component can only return one parent element.
 
return <h1>Hello</h1><p>World</p>            // error
return <div><h1>Hello</h1><p>World</p></div> // okay - JavaScript expressions can be interpolated in JSX with 
{} 
| # The code that follows is a Dog class with a multitude of class methods | |
| # that filter and transform Dog.all for various purposes. Unfortunately, | |
| # the author of these methods used .each to accomplish the iteration in | |
| # all cases, when .map (or .collect), .find, or .select would have been | |
| # a better choice. Read the code, run it with some test data (create a | |
| # runner file!) and understand what the methods are doing. Refactor to | |
| # use a different array method. | |
| class Dog | 
| dogs = [ | |
| { | |
| name: "fido", | |
| age: 4, | |
| likes: ["play fetch", "bark", "piddle"] | |
| }, | |
| { | |
| name: "spot", | |
| age: 10, | |
| likes: ["sleep"] | 
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing | 
| { | |
| "src_folders" : ["tests"], | |
| "output_folder" : "reports", | |
| "selenium" : { | |
| "start_process" : false, | |
| "server_path" : "./bin/selenium-server-standalone-3.3.1.jar", | |
| "log_path" : "", | |
| "host": "127.0.0.1", | |
| "port" : 4444, | 
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\