I saw on a website the following code:
var campo1 = document.getElementById('valor1').value;
var campo2 = document.getElementById('valor2').value;
var maior = (parseFloat(campo1) > parseFloat(campo2) ? campo1 : campo2);
var menor = (parseFloat(campo1) < parseFloat(campo2) ? campo1 : campo2);
My question is, what does the placement of: >
, <
, ?
and :
, within those variables.