JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Create a variable with a string

i don't understand what to do on the document.write part. what exactly do i write in the parenthesis

app.js
var player = "Jasmine";
document.write("player"); // 
index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src="app.js"></script>
</body>
</html>

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,172 Points

Variables shouldn't be enclosed in quotes. In doing so you are writing the word "player" instead of the value of the variable player.

thank you. i appreciate that.