some begginer to expert code example for JS interview