Node JS Age Counting Challenge: As per response of get call count the total number of ages who has age value above or equal to 50. Solution: const https = require ( 'https' ); https . get ( 'https://coderbyte.com/api/challenges/json/age-counting' , ( resp ) => { let data = '' resp . on ( 'data' , ( chunk ) => { data += chunk ; }); resp . on ( 'end' , () => { let jsonData = JSON . parse ( data . toString ()); let actualData = jsonData . data ; let arr1 = actualData . split ( ", " ); let totalCount = 0 ; for ( let i = 0 ; i < arr1 . length ; i ++){ let item = arr1 [ i ]; if ( item . indexOf ( 'age=' ) !== - 1 ){ let age = item . split ( '=' ); if ( parseInt ( age [ 1 ]) >= 50 ) { totalCount ++; } } } console . log ( totalCount ); }) }); //O...
1) Not selling your skills You may have everything (skills, knowledge, capability and experience) to be the best fit for that job but you may, on most occasions, fail on how to sell these to your recruiter/hiring manager. Here is a checklist of common interview blunders and how you can work on fixing them. 2) Avoiding eye contact This is one of the commonest interview blunders candidates or job-seekers tend to make - often unknowingly. Avoiding eye contact is perceived to indicate lack of confidence and honesty in a candidate. This is why more than 70 per cent employees reject a candidate. Thus, candidates should practice and make conscious effort to maintain eye contact during an interview. Practicing the answers in front of a mirror looking into one's eyes is a tried and tested way. 3) Not asking questions Most of the job descriptions posted online do not give a sense of what an actual day in the job would feel like. That being the case, when you do not ask questi...