M
Mario Thiel
Hello,
i am new to JavaScript and right now i am learning Call by Value. i
tryed to write a small script but somehow it doesnt work right. i cant
put <br> into it, and i can only put the document.write(xyz,x) in the
function.
<html>
<head>
<script language="JavaScript">
function Wert(x) {
x += 5;
document.write(xyz)
document.write(x)//Why can i add an <br>?
}
</script>
</head>
<body>
<script language="JavaScript">
var xyz = 10;
Wert(xyz);
Wert(x);
//Why cant i put the document.write in here?
</script>
</body>
</html>
Greets from Germany
i am new to JavaScript and right now i am learning Call by Value. i
tryed to write a small script but somehow it doesnt work right. i cant
put <br> into it, and i can only put the document.write(xyz,x) in the
function.
<html>
<head>
<script language="JavaScript">
function Wert(x) {
x += 5;
document.write(xyz)
document.write(x)//Why can i add an <br>?
}
</script>
</head>
<body>
<script language="JavaScript">
var xyz = 10;
Wert(xyz);
Wert(x);
//Why cant i put the document.write in here?
</script>
</body>
</html>
Greets from Germany