Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JavaSkript

Empfohlene Antworten

Veröffentlicht

Hallo ihr lieben!

Ich bins mal wieder mit nem kleinen Problem. Könnt ihr euch mal folgendes angucken bei mir funktioniert das nicht :-( vielleicht hab ich ja nur wo was vergessen!

<html>

<head>

<title>Beispiel 1 </title>

</head>

<body>

<p><font size="5">

<b> Dies sind die Beispiele aus der Lektion 3 </b></font></p>

<p><Script Language="JavaScript">

<!--

var x = 10;

var y = 15;

var z = x + y;

document.write("Ergebnis = " + z + "<BR>");

var x1 = 5;

document.write("Vorher x1 = " x1 + "<BR>");

x1 = "Hallo";

document.write("Nachher x1 = " + x1 + "<BR>");

var x2 = 10;

var y2 = "15";

var z2 = x2 + y2;

document.write("x2 + y2 = " + z2 + "<BR>");

//-->

</script></p>

<p> </p>

</body>

</html>

:WD mal danke im vorraus sag

Loni

Hi Loni,

document.write("Vorher x1 = " + x1 + "<BR>");

Vor dem zweiten x1 fehlt das + . :D

Manne :cool:

hallo

und die anführungszeichen var y2 = "15"; solltest du weglassen.

tschüss

tomtom

Au mann bin ich dooof.....:P

Danke euchs :-)

Loni

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.