Pls help
Logical or boolean operation "noon or night" exercise. Please teach me how to do it. https://www.sololearn.com/coach/419?ref=app Given a clock that measures 24 hours in a day. Write a program, that takes the hour as input. If the hour is in the range of 0 to 12, output am to the console, and output pm if it's not. Sample Input 13 Sample Output pm I tried many things but none worked so I need someone to help from scratch. process.stdin.setEncoding('utf-8'); let inputString = ''; process.stdin.on('data', inputStdin => { inputString += inputStdin; }); process.stdin.on('end', _ => { main(inputString); }); function main(input) { var hour = parseInt(input, 10) // Your code here //This is the provided base for the code }