Editing JavaScript 1 Einführung
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 111: | Line 111: | ||
<pre> | <pre> | ||
// Variable deklarieren => Initialisierung | // Variable deklarieren => Initialisierung | ||
let | let meineErsteVariable; | ||
// Der Variable einen Wert zuweisen | // Der Variable einen Wert zuweisen | ||
meineErsteVariable = 5; | |||
/* oder */ | /* oder */ | ||
meineErsteVariable = "Ich bin ein Text"; | |||
/* | /* | ||
Line 123: | Line 123: | ||
Wenn „use strict“ verwendet wird, ist diese Methode nicht möglich | Wenn „use strict“ verwendet wird, ist diese Methode nicht möglich | ||
*/ | */ | ||
let | let meineVariable = 5, text = "Hallo du", zahl = 10; | ||
</pre> | </pre> | ||