<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>YDKJS up & going</title>
		<script type=text/javascript charset=utf-8>

		var myObject = {
			a: 2
		};

		Object.getOwnPropertyDescriptor( myObject, "a" );

//-------------------------------------------------

		var myObject = {};

		Object.defineProperty( myObject, "a", {
			value: 2,
			writable: true,
			configurable: true,
			enumerable: true
		} );
		
		myObject.a; // 2


		</script>
	</head