Skip to content

Instantly share code, notes, and snippets.

@andywenk
Created March 15, 2010 17:51
Show Gist options
  • Save andywenk/333097 to your computer and use it in GitHub Desktop.
Save andywenk/333097 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavasScript Playground</title>
<script src="jscript.js"></script>
</head>
<body>
<h1>JavasScript Playground</h1>
<script>
var arr = ['one', 'two', 'three'];
var jsArrInst = new jscript.ui.array.getInstance();
var resArr = jsArrInst.findInArray(arr);
console.info(resArr); // prdouces ['one', 'two', 'three']
</script>
</body>
</html>
/*
jscript package
*/
jscript = function() {};
jscript.ui = function() {};
jscript.ui.array = {
getInstance: function() {
return jscript.ui.array;
},
findInArray: function(arr) {
return arr;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment