What do you know about...
Switch statements
Switch statements are used to execute different blocks of code based on different cases. They are declared using the switch keyword followed by the variable to evaluate and the cases to test against. Here is an example code for using a switch statement:
/* Switch statement */ let fruit = "banana"; switch (fruit) { case "apple": console.log("This is an apple."); break; case "banana": console.log("This is a banana."); break; default: console.log("Unknown fruit."); }
What do you know about...
Operators
JavaScript has several operators including arithmetic, comparison, logical, and assignment operators. Here is an example code for using operators:
/* Operators */ let a = 5; let b = 10; console.log(a + b); // output: 15 console.log(a == b); // output: false console.log(a < b && a > 0); // output: true a += 2; console.log(a); // output: 7
What do you know about...
Arrow functions
Arrow functions are a shorthand way to declare functions in JavaScript. They are declared using the arrow notation => and can have implicit return statements. Here is an example code for using arrow functions:
/* Arrow functions */ let add = (a, b) => a + b; let result = add(2, 3); console.log(result); // output: 5
What do you know about...
Data types
JavaScript has several data types including numbers, strings, booleans, objects, arrays, and null/undefined. Here is an example code for declaring data types:
/* Data types */ let age = 30; let name = "John"; let isStudent = true; let person = { name: "John", age: 30 }; let numbers = [1, 2, 3, 4]; let noValue = null; let undefinedValue;
What do you know about...
Arrays
Arrays are used to store multiple values in a single variable. They are declared using square brackets and can hold any data type. Here is an example code for using an array:
/* Arrays */ let numbers = [1, 2, 3, 4];
What do you know about...
Template literals
Template literals are a way to concatenate strings and variables in a more readable and concise way. They are declared using backticks and placeholders for variables. Here is an example code for using template literals:
/* Template literals */ let name = "John"; let age = 30; console.log(`My name is ${name} and I am ${age} years old.`); // output: "My name is John and I am 30 years old."
What do you know about...
If statements
If statements are used to execute code based on a condition. They are declared using the if keyword followed by the condition and the code to execute if the condition is true. Here is an example code for using an if statement:
/* If statement */ let age = 30; if (age >= 18) { console.log("You are an adult."); }
What do you know about...
Variables
Variables are used to store values in JavaScript. They are declared using the var, let, or const keyword followed by the variable name and an optional initial value. Here is an example code for declaring a variable:
/* Variables */ var message = "Hello, world!"; let count = 0; const PI = 3.14;
What do you know about...
While loops
While loops are used to iterate over a block of code while a condition is true. They are declared using the while keyword followed by the condition. Here is an example code for using a while loop:
/* While loop */ let i = 0; while (i < 5) { console.log(i); i++; }
What do you know about...
Objects
Objects are used to store multiple values in a key-value format. They are declared using curly braces and can hold any data type. Here is an example code for using an object:
/* Objects */ let person = { name: "John", age: 30 }; console.log(person.name); // output: "John"
What do you know about...
Else statements
Else statements are used in conjunction with if statements to execute code if the condition is false. Here is an example code for using an else statement:
/* Else statement */ let age = 16; if (age >= 18) { console.log("You are an adult."); } else { console.log("You are a minor."); }
What do you know about...
Callback functions
Callback functions are used to pass a function as an argument to another function to be executed later. They are commonly used in asynchronous programming. Here is an example code for using a callback function:
/* Callback functions */ function greet(name, callback) { console.log(`Hello, ${name}!`); callback(); } function bye() { console.log("Goodbye!"); } greet("John", bye); // output: "Hello, John!" and "Goodbye!"
What do you know about...
Functions
Functions are used to encapsulate a block of code that can be called multiple times with different arguments. They are declared using the function keyword followed by the function name, parameters, and function body. Here is an example code for declaring a function:
/* Functions */ function greet(name) { console.log("Hello, " + name + "!"); } greet("John"); // output: "Hello, John!"
What do you know about...
For loops
For loops are used to iterate over a block of code a specific number of times. They are declared using the for keyword followed by the initialization, condition, and increment/decrement expressions. Here is an example code for using a for loop:
/* For loop */ for (let i = 0; i < 5; i++) { console.log(i); }
What do you know about...
Classes
Classes are a way to define blueprints for creating objects in JavaScript. They are declared using the class keyword and can have properties and methods. Here is an example code for using classes:
/* Classes */ class Person { constructor(name, age) { this.name = name; this.age = age; } sayHello() { console.log(`Hello, my name is ${this.name} and I am ${this.age} years old.`); } } let person = new Person("John", 30); person.sayHello(); // output: "Hello, my name is John and I am 30 years old."
What do you know about...
Functions as values
In JavaScript, functions can be assigned to variables and passed as arguments to other functions. Here is an example code for using functions as values:
/* Functions as values */ let add = function(a, b) { return a + b; } let result = add(2, 3); console.log(result); // output: 5
Web Development Courses
-
Build professional projects for your portfolio
-
Master CSS, HTML and JavaScript
-
Learn to use popular frontend frameworks and libraries such as Vue.js, React.js, Bootstrap and Tailwind CSS
Web Development Quizzes
-
Flexible study option that you can access anytime
-
Helps you identify areas that need improvement.
-
Topics such as HTML, CSS, JavaScript, responsive design, accessibility, and more
Frontend Developer Challenges
-
Suitable for frontend web developers of all levels
-
Encourages you to think outside the box
-
A great way to practice and apply your knowledge in a real-world context
Free Website Templates
-
Saves you time and effort by providing ready-to-use templates
-
Strong foundation for building your own custom websites
-
Perfect for learners who want to experiment with different designs and layouts
Frontend HTML Snippets
-
Saves you time and effort by providing ready-to-use code
-
Wide range of components, such as navbar, carousel, modal, and more
-
Library of HTML code snippets to streamline your frontend web development workflow
Frontend Tech Terminology
-
Suitable for learners of all levels
-
Comprehensive glossary of frontend web development terms
-
Covers key concepts and terminology related to HTML, CSS, JavaScript, responsive design, accessibility, and more
Bootstrap Utility API Guide
-
A comprehensive guide to Bootstrap's utility API
-
Provides practical examples and code snippets
-
A valuable resource for building responsive and accessible websites with Bootstrap