English

Closing the Block-to-Text Gap: A Domain-Specific JavaScript Editor for Early Computational Thinking

Human-Computer Interaction 2025-12-02 v1 Computers and Society

Abstract

This paper presents a web-based JavaScript editor designed to help children aged 8-10 transition from block-based to text-based programming. The system introduces a simplified domain-specific language (DSL) focused on visual art, combining authentic JavaScript syntax with immediate, creative visual feedback. A four-week pilot study (N = 15) demonstrated significant improvements in computational thinking skills (mean CTCI gain of +10.9, p < 0.001), along with a 70% reduction in syntax errors. Participants advanced from basic drawing functions to sophisticated algorithmic designs using loops, conditionals, and animations. By integrating constructionist principles with a visual-first DSL, this research contributes a validated pedagogical framework for easing the block-to-text transition in K-12 computer science education. The system encourages creativity, self-correction, and sustained engagement, offering educators a practical, scalable tool for introducing authentic coding to young learners.

Keywords

Cite

@article{arxiv.2512.00012,
  title  = {Closing the Block-to-Text Gap: A Domain-Specific JavaScript Editor for Early Computational Thinking},
  author = {Andrei Enea},
  journal= {arXiv preprint arXiv:2512.00012},
  year   = {2025}
}

Comments

12 pages, 1 figure (Mean CTCI Pre- and Post-Test Scores. All mathematical notations are supported via MathJax

R2 v1 2026-07-01T07:59:57.152Z