JavaScript
HTML
CSS
jQuery
PHP
SQL
WordPress
JavaScript Reference

Quick Reference

This is a quick reference list of JavaScript statements with examples of how they are used.

JavaScript – break Statement

The break statement stops code execution within the switch, and also breaks out of a loop, continuing to execute code that comes after the loop.

JavaScript – const Statement

The const statement declares a variable (container for storing information) with an immediately defined value that will not change.

JavaScript – continue Statement

The continue statement breaks an iteration in the loop, if a specified condition occurs, and then continues with the next iteration in the loop.

JavaScript – function Statement

The function statement declares a function to be executed later, when it is called. Functions are objects, and have both properties and methods.

JavaScript – let Statement

The let statement declares a variable (container for storing information), and can be empty when declared, with the value assigned later.

JavaScript – switch Statement

The switch statement executes different blocks of code depending on set conditions, and uses the break keyword to break out of the switch block.

JavaScript – throw Statement

The throw statement allows you to generate a custom error (throw an exception), which can be a String, a Number, a Boolean, or an Object.

JavaScript – var Statement

The var statement declares a variable (container for storing information), and can be empty when declared, with the value assigned later.

We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.

JavaScript
HTML
CSS
jQuery
PHP
SQL
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

Feedback

If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.