Top answers


How to check if value exists in an object in JavaScript?

Let's consider an example which would answer this question var priceOfFood = { pizza: 14, burger 10 } priceOfFood.hasOwnProperty('pizza') // true priceOfFood['pizza'] // 14 priceOfFood.hasOwnProperty('chips'...
MC
Answered by Maciej C. Javascript tutor
11114 Views

How to sum every number in an array of numbers.

Using the ES2015 syntax it can be done as follows: let numbers = [10, 42, 5, 87, 61, 34, 99]; let sum = numbers.reduce((a,b) => a + b); where the reduce signature is Array.prototype.reduce(accumulator, el...
MC
Answered by Maciej C. Javascript tutor
2123 Views

What are the general trends of alkali metals (group 1)?

Group 1 metals all have one outer electron, which is responisble for their properties. As you go down the group: the metals become more reactive. This is due to the increased number of electron shells which ...
JB
5590 Views

What is negative feedback?

Firstly you have a change away from optimum conditions, for instance a decrease in internal body temperature, which is detected by a receptor. The receptor relays this infromation down the communication path...
JB
Answered by Josephine B. Biology tutor
3034 Views

Describe and explain the motion of a skydiver from leaving the aircraft to reaching terminal velocity

Initially, there is only one force acting on the skydiver, which is their weight. F=ma therefore mg=ma. The m's cancel and the skydiver falls with acceleration g. However as soon as they have a downwards vel...
OF
Answered by Ollie F. Physics tutor
6480 Views