Browse Source

Update Creating-a-scene.html

change "var" to "let"
aarón montoya-moraga 4 years ago
parent
commit
137890c69e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/manual/en/introduction/Creating-a-scene.html

+ 3 - 3
docs/manual/en/introduction/Creating-a-scene.html

@@ -43,10 +43,10 @@
 		<p>To actually be able to display anything with three.js, we need three things: scene, camera and renderer, so that we can render the scene with camera.</p>
 
 		<code>
-		var scene = new THREE.Scene();
-		var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
+		let scene = new THREE.Scene();
+		let camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
 
-		var renderer = new THREE.WebGLRenderer();
+		let renderer = new THREE.WebGLRenderer();
 		renderer.setSize( window.innerWidth, window.innerHeight );
 		document.body.appendChild( renderer.domElement );
 		</code>