Top answers


Testing a question

Testing an Answer
T2
1879 Views

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
11156 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
2177 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
5713 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
3148 Views