[JavaScript] Funktionsdeklaration

// Variante 1
function getBrutto(netto, prozent)
{ 
    return netto * (1.0 + (prozent / 100.0));
}

console.log(getBrutto(100.0, 3.0));

// Variante 2
let getCelsius = function(fahrenheit)
{ 
    return (fahrenheit - 32) * 5 / 9;
};

console.log(getCelsius(20));