Intro to CS MIT - Finish Problem set 01

This commit is contained in:
ericdouglas 2015-05-30 12:02:24 -03:00
parent 8771653735
commit b504a25d24

View File

@ -8,7 +8,9 @@
*/
var answers = 0;
var answers = 0;
var birthDate = '';
var lastName = '';
process.stdin.resume();
@ -17,9 +19,6 @@ process.stdin.setEncoding( 'utf8' );
process.stdin.on( 'data', function( input ) {
var birthDate = '';
var lastName = '';
if ( answers === 0 ) {
birthDate = input;
@ -32,11 +31,9 @@ process.stdin.on( 'data', function( input ) {
lastName = input;
console.log(
'================\n',
'Birth date:',
birthDate, '\n',
'Last Name:',
lastName, '\n',
'================\n<< Informations >>\n' +
'Birth date: ' + birthDate + '\n' +
'Last Name: ' + lastName + '\n' +
'Bye!'
);