Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (30 sloc) 1.08 KB
<DOCTYPE html/>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>uso operatori assignment</title>
<script type="text/javascript">
var numero = 10;
</script>
</head>
<body>
<p id="paragrafo1">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>paragrafo 2</p>
<script type="text/javascript">
document.write( numero + 2 );//numero vale 10
document.write( numero );//numero vale
document.write( numero += 2 );//numero vale 12
document.write( numero -= 2 );//numero vale 10
document.write( numero );//numero vale
document.write( numero *= 2 );//numero vale 20
document.write( numero /= 2 );//numero vale 10
</script>
</body>
</html>