Skip to content

Instantly share code, notes, and snippets.

@xasima
Last active April 3, 2018 08:00
Show Gist options
  • Select an option

  • Save xasima/c2bf2e6fedd5e59190fee0bab98b37bd to your computer and use it in GitHub Desktop.

Select an option

Save xasima/c2bf2e6fedd5e59190fee0bab98b37bd to your computer and use it in GitHub Desktop.
Sample code for Express
function greeter(person) {
return "Hello, " + person;
}
var user = "Jane";
var eventPlaceId = "greeter";
alert('hello world in JS!');
document.getElementById(eventPlaceId).innerHTML = greeter(user);
<html>
<body>
<h1>Testing Swagger API Call from typescripts</h1>
<p id="greeter"></p>
</body>
<script src="js/greeter.js"></script>>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment