Skip to content

Instantly share code, notes, and snippets.

View venomnert's full-sized avatar
🎯
Focusing

Neerthigan venomnert

🎯
Focusing
View GitHub Profile
VariableObject : {
/* no argument for the global context */
minusNum: pointer to function minusNum,
addNum: undefined
}
/* Global Context */
var addNum = function sum(x,y) {
console.log(x+y);
}
function minusNum(x,y) {
console.log(x-y);
}
addNum(2,3) // 5
minusNum(2,3) // -1
function foo(x) {
var a = 5,
test = 6,
a = function test() { console.log('hello foo'); }
a();
test();
function test() { console.log('hello test'); }
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MDN Games: A-Frame demo</title>
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
</head>
<body>
<a-scene> <!--The a scene is responsible for rendering the objects nested within it-->
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere> <!--The a-sphere is a sphere we are creating with some css like inline declaration-->