Skip to content

Instantly share code, notes, and snippets.

@himanshu-dixit
Created February 22, 2019 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himanshu-dixit/972aec7570edf962713c507e675ae3cf to your computer and use it in GitHub Desktop.
Save himanshu-dixit/972aec7570edf962713c507e675ae3cf to your computer and use it in GitHub Desktop.
"use strict";
var readlineSync = require('readline-sync');
import IndexOther from './other';
class Index{
name:String;
constructor(name) {
// super(props);
this.name= name;
}
getName(){
console.log(this.name);
return this.name;
}
}
let Index1 = new Index('himanshu');
Index1.getName();
let Index2 = new IndexOther();
Index2.getName();
var userName = readlineSync.question('May I have your name? ');
console.log('Hi ' + userName + '!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment