Web development
JavaScript for Beginners
Beginner course with English explanations and Khmer support.
English · beginner · 8 lessons
Start learning →JavaScript and Your First Program
JavaScript and Your First Program →JavaScript is a programming language used to add behaviour to web pages and in other environments. A browser can run JavaScript included in an HTML page. The console is useful for testing and seeing e
Variables and Data Types
Variables and Data Types →Variables store values. Use const for a binding you do not reassign and let for one you plan to reassign. Common values include strings, numbers, and booleans. A string in quotes is different from a n
Numbers, Strings, and Conversion →JavaScript distinguishes numbers from strings. The plus operator adds numbers but can concatenate when a string is involved. Convert deliberate numeric input with Number and check for invalid results
Conditions and Comparisons
Conditions and Comparisons →An if statement runs a block when its condition is true; else handles the alternative. Comparison operators such as === and > produce booleans. Use === for strict equality when you want to compare wit
Functions and Reuse
Functions and Reuse →A function groups instructions under a name. Parameters receive input, and return sends a result back to the caller. Calling a function does not automatically display the return value; use it or log i