Skip to content
Browse files

add a hello world example in javascript

  • Loading branch information...
1 parent 2fb1621 commit 3ff00732e899d83f9e755a9089409ab6b817d79a @pquerna committed Aug 20, 2010
Showing with 28 additions and 0 deletions.
  1. +28 −0 helloworld_js/index.js
View
28 helloworld_js/index.js
@@ -0,0 +1,28 @@
+/*
+ * Licensed to Paul Querna under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * Paul Querna licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+HelloWorldJs = function() {
+ this.m_count = 0;
+};
+
+
+HelloWorldJs.prototype.hello = function()
+{
+ return "Hello World"
+};
+
+exports.HelloWorldJs = HelloWorldJs;

0 comments on commit 3ff0073

Please sign in to comment.
Something went wrong with that request. Please try again.