-
-
Save himanshu-dixit/972aec7570edf962713c507e675ae3cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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