Select Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type
Add rule of HTTP and HTTPS
Select Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type
Add rule of HTTP and HTTPS
| var totalOrders = 0; | |
| var totalSpent = 0; | |
| var totalShippingSpent = 0; | |
| var pulling = true; | |
| var offset = 0; | |
| function getStatistics() { | |
| var orders = []; | |
| var xhttp = new XMLHttpRequest(); | |
| xhttp.onreadystatechange = function () { |
A class should have only a single responsibility.
Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.
Software entities should be open for extension, but closed for modification.