Variables: variables.
html
!
<!doctype html>
<html>
<head>
<title>Learning Javascript</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<input id="myInput" type="text" value="test" />
<button id="stylesChanger">Change the text!</button>
<div id="firstDiv">This is some text</div>
<script type="text/javascript">
var newText=[Link]("myInput").value;
[Link]("stylesChanger").onclick=function() {
newText=[Link]("myInput").value;
[Link]("firstDiv").innerHTML=newText;
}
</script>
</body>
</html>