Hallo
Ich habe den unten stehenden JS Code in ein HTML - Gerüst eingebettet.
Dennoch wird auf der HTML Seite nichts angezeigt. Sieht jemand den Grund? Bzw. den Fehler?
Danke für Eure Hilfe
Grüsse
Peter
// A program to find the sum and difference of two numbers
var firstNum;
var secondNum;
firstNum = window.prompt('Please enter the first number″, ‚‘);
firstNum = ParseFloat(firstNum);
secondNum = window.prompt(‚Please enter the second number‘, ‚‘);
secondNum = parseFloat(secondNum);
document.write’The sum of ’ + first + ’ and ’ + secondNum + ’ is ’ + (firstNum + secondNum) + ‚<BR>‘);
document.write('The difference of ’ firstNum + ’ and ’ + secondNum + ’ is ’ + (firstNum + secondNum) + <BR>:wink:;