After diving into JavaScript recently, I encountered some issues right away. I've been attempting to run a simple "Hello World" program but no success so far. Each time I open the html file in Safari, it displays only a blank page. Despite having enabled JavaScript in Safari preferences, nothing seems to work. The file has been saved with a .html extension. Here is the code I wrote using Sublime Text 2:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title> JS Test Page </title>
</head>
<script type=“text/javascript”>
document.write(“hello world”);
</script>
<body>
</body>
</html>
If relevant, the file path in the URL is: file:///Users/ME/Desktop/testJS.html