Code examples in nodejs for some typical interview questions