Javascript-Age in days challange-1 (Source code)
JAVASCRIPT function ageInDays (){ var birthYear = prompt ( "What year you born......... good friend" ); var ageInDays = ( 2020 - birthYear )* 365 ; var h1 = document . createElement ( "h1" ); var textAnswer = document . createTextNode ( 'You are' + ageInDays + 'Days' ); h1 . setAttribute ( 'id' , 'ageInDays' ); h1 . appendChild ( textAnswer ); document . getElementById ( 'result' ). appendChild ( h1 ); }; function reset (){ document . getElementById ( 'ageInDays' ). remove (); }; CSS .btn-container { border : 2px solid black ; display : flex ; flex-direction : row ; justify-content : space-around ; } .container-box-heading1 { border : 2px solid black ; justify-content : center ;