
Explore JavaScript in the browser with Chrome and Atom, learn variables, numbers, strings, and for loops, and use the console, prompts, and document.write to build a simple high/low guessing game.
Master expressions, variables, numbers and strings in JavaScript using var declarations, arithmetic, string concatenation, and the console to evaluate values in a browser environment.
Learn to print to the console with console.log, use a for loop to print the name ten times, and manage variables in JavaScript while debugging with common errors.
Learn to use alert and prompt dialogs to show messages and collect user input, then write results to the web page with document.write.
Practice using JavaScript to store variables, prompt for a name and a number of times, and output the name that many times with document.write inside a for loop.
Demonstrate a short JavaScript solution for a name printing challenge using prompt, a for loop, and document.write, then rerun and adjust the name and the repetition count.
Create a random number guessing game in JavaScript by using Math.random to generate 1 to 100, prompt the user for a guess, and loop with conditions until correct.
Create a number guessing game that uses a while loop to repeatedly prompt for guesses, show too high or too low feedback, and stop when correct.
Build an interactive browser guessing game using random numbers, prompts, alerts, and a while loop. Add a for loop to celebrate by printing the player's name after a win.
Build a browser guessing game in JavaScript by prompting for the player's name, looping to celebrate wins, and writing the name to the page 500 times.
Learn to inspect and edit HTML in the browser, using inspect, view source, and design mode to edit a local page; build interactive HTML pages that run JavaScript.
Learn how to make HTML web pages interactive with JavaScript by creating functions, wiring up on click events to draw output like a cat using document.write, and using script tags.
Review HTML basics, including h1, h3, p, and script tags, and practice interactive JavaScript with functions, prompts, and button-driven events through name and guessing game challenges.
Learn to turn simple JavaScript into standalone web pages by copying code, renaming functions, and using HTML forms to create interactive 'say my name' and 'guessing game' programs.
Build an HTML-based guessing game using a text input and a button, display results on the page, and wire the event-driven interaction to JavaScript in the next lesson.
Connect an HTML form to JavaScript by wiring the button to a checkGuess function, read user input by id, compare it to a number, and display high, low, or win.
Enhance a browser-based guessing game by resizing the input field, preventing default submit with on submit return false, and adding newGame to focus and select the input after each guess.
Review a browser guessing game built with a text field, a check guess button, and on-page output using innerHTML. Explore challenges that track tries and add a scoreboard.
Develop two javascript guessing game versions that track tries, reset on new games, and update a live scoreboard with each win.
Learn to create an interactive drawing app with the HTML5 canvas and JavaScript, drawing colorful, transparent circles, rectangles, and arcs on a 2D canvas using mouse drag and random colors.
Learn to draw on the html5 canvas with mouse clicks, placing random colored circles, and outline them with a stroke while computing coordinates relative to the canvas.
Learn to turn a basic canvas drawing into a fluid drag-and-draw experience by adding a page background, consistent transparency, and mouse-move drawing to create stained-glass like circles.
Learn to draw on an HTML canvas using random hex colors and alpha transparency, with on click and mouse move events. Tackle challenges to vary circle size as you draw.
Grow and shrink circle radii with a grow flag to create pulsing visuals as you drag, and share your work on JSFiddle.
Build and run a JavaScript savings calculator that computes future balance from monthly deposits, annual interest, and years using input parsing, a for loop, and dynamic output.
Learn to debug a savings calculator in the browser using the inspect tool and console, identify errors like missing semicolons, quotes, or mis-capitalized getElementById, and fix them.
Review the savings calculator’s form-based interface and calculations, preview an investment graph to visualize growth, and tackle a challenge to turn it into a funny story generator using user-provided words.
Modify a savings calculator to a funny story app by generating stories from an animal, adjective, and verb, updating HTML output, IDs, and string concatenation to display a multi-line tale.
Transform a savings calculator into an investment calculator by drawing a bar chart on a canvas that shows yearly totals, using an array, a graph function, and clear rectangle.
Create an HTML investment calculator with a table-based form and a canvas bar chart, using JavaScript to parse numbers, compute yearly totals, and visualize progress with an outline and labels.
Turn a fully functional investment calculator into a portfolio showcase by adding bar chart outlines and labeled values at 10, 20, 30, and 40 years, improving readability and presentation.
Build a bouncing ball app with JavaScript using a Ball class, a constructor, and a draw method. Create new Ball on click to animate on a canvas.
Build an object-oriented bouncing balls app in JavaScript by creating a Ball class with draw and update methods, managing balls in an array, and animating with setInterval.
Animate bouncing balls by assigning each ball its own x and y velocity, randomizing directions, and updating positions at about 30 frames per second, with collision against canvas edges.
Explore turning a simple drawing app into an object oriented, HTML and JavaScript project with separate files and animated balls with random sizes and a configurable background color.
adds a clear button and prevents balls from getting stuck at edges by adjusting positions, checking for zero velocity, and refreshing the canvas in a JavaScript object-oriented program.
Discover a bonus memory card game built with JavaScript, HTML, and CSS, and learn to modify an existing program, customize colors and polygons, and add a timer and high scores.
Modify a snake game by adjusting points, length, colors, and speed using jQuery and JavaScript, then customize and share your version with friends.
Customize and experiment with a JavaScript snake game by adjusting score, speed, block size, colors, and fonts; learn by editing existing code, testing changes, and reverting when needed.
Join over 60,000 students from 163 countries learning to code from Dr. Bryson Payne!
Brand new course for 2021! Teach yourself to code fun, colorful apps and games in JavaScript, the powerful programming language that's included in every web browser and mobile device. Learn coding step-by-step from Computer Science Professor Dr. Bryson Payne, author of the Amazon #1 New Release and Top 10 Best Seller, Teach Your Kids to Code: A Parent-Friendly Guide to Python Programming (No Starch Press). Filmed in collaboration with Bund Media/Zhidao Education Technology, with subtitles in English and Chinese.
Update: Pre-order Dr. Payne's new book, "Go Hack Yourself" on Amazon now!
Gives Children a Huge Advantage in a High-Tech World
Quickly master new problem-solving skills in JavaScript with colorful, fun examples
Program apps using HTML5 Canvas graphics, web-based forms, even animated video games
Build your own playable games and create beautiful graphics right in your browser using a simple text editor
Learn the basics of coding, from variables to loops, functions, and classes with interactive, engaging apps
Great for college and scholarship application portfolios
This is the kind of course you can enjoy at any age!
Packed with fun examples, colorful graphics, and easy-to-follow plain English instruction, JavaScript for All is the course parents and teachers can enjoy, as they build one of the top job skills of the 21st century! JavaScript is a great first language for beginners, but it's powerful enough to be used in companies from Apple to Amazon and Google to IBM.
I designed this programming course to be easily understood by absolute beginners, with example code I used with my own students all the way through the apps I teach to college freshmen.
Quick, hands-on lessons will get you coding your own web apps and games from scratch in minutes. Over 40 video lectures and six hours of content in short, 2-to-8-minute videos will give you the practice you need to master the powerful new skill of coding.
Everything you need to get started right away
Complete with working code downloads and high-definition videos, you'll be able to work alongside a professor with 22 years' teaching experience and over 30 years of programming knowledge. You'll also receive a Certificate of Completion upon finishing the course.
No Risk: Preview videos from Sections 1, 2, and 4 now for FREE, and enjoy a 30-day money-back guarantee when you enroll - zero risk, unlimited payoff! And, we've made this course easy to afford so parents and students can get started now!
Enroll in JavaScript for All and get started coding today!
* Two bonus sections added with advanced video game apps you can customize and share with your friends! *
Praise for Dr. Payne's books and online courses:
"Inspired" - This is an inspiring course taught by an inspired teacher. The examples are well-chosen -- demonstrating principles through engaging, colorful projects... — Kent Osband, Udemy student
"Excellent path into coding" Not just for kids...use this course as the perfect primer. Clear examples, that build quickly into programs, leading to learning challenges. Bryson's delivery is well paced and good fun. — Sean Jon Darcy, Udemy student
"Dr. Bryson Payne is a computer scientist and professor of the highest caliber, and he brings the power of computers within easy reach for learners young and old."—Dr. Antonio Sanz Montemayor, Informatics Professor, Universidad Rey Juan Carlos, Spain
“Dr. Payne set us on the path that led us to our dream jobs! ...He's providing parents and teachers everywhere the chance to do the same for the next generation of creative problem-solvers."—Shah Rahman, Blizzard Games and Susan Rahman, Facebook