finished part of js questions.