Questions tagged [closest]

Closest is being the nearest to a number, object, quantity etc.

Given a number of objects, the closest 2 objects would be those that the between them is the shortest.

561 questions
-1
votes
3 answers

Prints the temp closest to 0 among input data - Coding Game

I am new at coding and I don't understand why my code doesn't work for the last test of this Coding Game problem : https://www.codingame.com/ide/puzzle/temperatures Language : Javascript Last test is : Display 0 (zero) if no temperatures are…
Hydrocoder
  • 1
  • 1
  • 2
-1
votes
2 answers

JavaScript How to use "this" with onchange event and select element

I have got several select tags and divs in my html: