Javascript Resources

An introduction to Javascript programming, client-side and server-side scripts, coding projects, resources for parents and more. Javascript is the foundation of modern websites and applications.


Nested For Loops in Javascript

Jan 6 2024

Learn the many situations where we will need to use nested loops in Javascript.
Read more
How to break out of foreach loops in Javascript

Jan 6 2024

Learn how to exit a foreach loop in Javascript!
Read more
How to exit a function in Javascript

Dec 29 2023

To exit a function in Javascript, you can use the return, break, or throw statements.
Read more
How to subtract dates in Javascript

Dec 29 2023

Let us learn about dates and how to subtract them in Javascript!
Read more
How to convert Celsius to Fahrenheit

Dec 20 2023

Learn to convert C to F using Python and Javascript!
Read more
How to convert Fahrenheit to Celsius

Dec 20 2023

Let us write simple programs to convert Fahrenheit to Celsius!
Read more
How to convert days to years

Dec 3 2023

Here is some math + coding for you to convert days to years!
Read more
Javascript toISOString()

Dec 3 2023

Learn how to convert Javascript Date objects into strings in ISO format!
Read more
Birthday Paradox Calculator

Dec 2 2023

Learn about the Birthday Paradox with a simple calculator to understand its implications!
Read more
How to convert minutes to days

Nov 30 2023

Here is some math + coding for you to convert minutes to days!
Read more
How to convert seconds to years

Nov 23 2023

Here is some math + coding for you to convert seconds to years!
Read more
How to scroll automatically to the bottom of a webpage

Nov 13 2023

Learn to use Javascript to scroll down on a webpage!
Read more
How to use Javascript’s Slick.js to create a Carousel

Nov 13 2023

Learn to make an interactive, compelling, carousel in your webpage using Javascript’s slick library!
Read more
The Increment (++) Arithmetic Operator in Javascript

Nov 9 2023

Learn the increment (++) operator in Javascript and how it works!
Read more
Building a simple clicker in Javascript

Nov 9 2023

Learn how to make a simple clicker (game) in Javascript!
Read more
Getting URL parameters with Javascript

Nov 8 2023

Learn how to extract URL parameters from your URL using Javascript!
Read more
How to download a file from a URL using Javascript

Nov 8 2023

Learn to programmatically download a file from your Javascript program!
Read more
How to add commas to a Javascript number

Oct 25 2023

Learn how to add commas to a Javascript number to make it more readable!
Read more
How to check if a Javascript string is a number

Oct 25 2023

How do you test if a Javascript string is a number? Learn simple programs to conduct this test!
Read more
How to convert days to seconds

Oct 24 2023

Here is some math + coding for you to convert days to seconds!
Read more
How to round down a number in Javascript

Oct 24 2023

Learn different ways to round down a number in Javascript!
Read more
How to find all combinations of array values in Javascript

Oct 23 2023

Learn how to generate all combinations of array values in Javascript!
Read more
Does Javascript support list comprehensions?

Oct 23 2023

Javascript does not directly support list comprehensions but it provides map, filter, reduce, and other similar concepts from functional programming.
Read more
Javascript 'if not'

Oct 21 2023

How do you check for 'if not's in Javascript? Learn how!
Read more
The question mark (?) operator in Javascript

Oct 21 2023

Learn the many uses for the question mark (“?”) operator in Javascript.
Read more
How to add days to dates in Javascript

Oct 17 2023

Learn easy tricks to add some number of days to the current date in Javascript.
Read more
Commenting out in Javascript

Oct 17 2023

Learn the rules of commenting in Javascript, especially how to comment out multiple lines!
Read more
How to swap variables in Javascript

Oct 12 2023

Learn five (yes five!) different ways to swap two variables in Javascript.
Read more
Javascript toFixed()

Oct 12 2023

Learn to convert numbers to strings in Javascript and how to enforce a length in doing so!
Read more
Javascript’s double question mark (??)

Oct 7 2023

Learn how and when to use the Javascript double question mark (??) operator!
Read more
Javascript trimEnd()

Oct 7 2023

trimEnd() is a handy Javascript method that, as the name suggests, trims your string of any whitespace at the end of it.
Read more
How to not allow special characters in a textbox

Sep 5 2022

Learn a simple approach to validate your user’s input in a textbox so as to not allow special characters!
Read more
What is NaN in Javascript?

Jul 22 2022

NaNs refer to objects in Javascript that are not valid numbers. Learn how they occur and how to check for them!
Read more
How to get user input in Javascript

Jul 22 2022

Learn two approaches to get user input in Javascript: the prompt() method and a textbox.
Read more
How to check if a letter is uppercase in Javascript

Jul 20 2022

Learn a handy way to check if a letter is uppercase in Javascript!
Read more
How to Reverse a String in Javascript

Jul 20 2022

Learn four different ways to reverse a string in Javascript. Which one will be your favorite?
Read more
How to get yesterday’s date (or tomorrow’s date) in Javascript

Jul 19 2022

Need a handy way to get yesterday’s date (or tomorrow’s date) in your Javascript code? Learn how!
Read more
Find your current time zone in Javascript

Jul 19 2022

Here’s a very handy program to determine your current time zone programmatically in Javascript.
Read more
Getting the value of a clicked button in Javascript

Jul 17 2022

Want to setup buttons on your page and recognize when they are clicked? Learn how to do so!
Read more
Hiding Dropdown Values in Javascript

Jul 17 2022

Learn how to hide dropdown values in Javascript based on user selections elsewhere. This is very useful in creating interactive menus.
Read more
Removing Elements from a DOM in Javascript

Jul 6 2022

Learn how to programmatically remove elements from a DOM and modify a webpage!
Read more
Javascript instanceof

Jul 6 2022

Javascript’s instanceof operator is a very convenient way to understand objects and their types. Learn how to use it!
Read more
How to scramble a word in Javascript

Jul 5 2022

Want to randomly permute the order of characters in a Javascript string? Learn how!
Read more
Can a Javascript function return multiple values?

Jul 5 2022

Dive deeper into Javascript functions and see whether a function can return multiple values.
Read more
Javascript’s Array reduce() method

Jul 4 2022

Learn about the reduce() method in Javascript that computes functions over an entire array and returns accumulated results.
Read more
How to loop through two arrays in Javascript

Jul 4 2022

Learn how to do the Javascript equivalent of the zip function from Python!
Read more
The valueOf method in Javascript

Jun 6 2022

The valueOf method in Javascript returns the primitive value of an object without changing its original value.
Read more
JavaScript’s Math.floor() Method

Jun 6 2022

Learn Javascript’s Math.floor() method using simple examples!
Read more
Javascript's Array shift() method

Jun 3 2022

Javascript’s shift() method offers a convenient way to remove the first element of an array. Learn how to use it!
Read more
Javascript’s Math.max() function

Jun 3 2022

Learn about the very useful Math.max() function in Javascript!
Read more
How to check if a number is between two numbers in JavaScript

May 31 2022

Writing a Javascript program and trying to check if a number is in between two values? Learn how to do so!
Read more
Computing powers in Javascript

May 31 2022

Looking to compute powers of numbers in your interactive webpage? Learn how to do so!
Read more
  • ABOUT

Copyright @ Kodeclik 2023. All rights reserved.