This paper was aimed to investigate the influence of online coding courses on logical reasoning ability towards fifth and sixth graders. Students used "Code.org online programming courses" about three months. Through "Raven's Standard Progressive Matrices" before and after testing to understand the change of students' logical reasoning ability in the experiment. And based on "Technology Acceptance Model", researcher edit "Code.org Learning Attitude Questionnaire" to explore the attitude of students towards the courses and the factors of influencing students learning online courses.