What do you know about...
Symbol
The symbol data type represents a unique identifier in JavaScript. Symbols are often used as keys in objects to prevent naming conflicts. Here is an example code for using the symbol data type:
/* Symbol */ let mySymbol = Symbol("mySymbol"); console.log(mySymbol);
What do you know about...
Map
The map data type represents a collection of key-value pairs in JavaScript. Maps are similar to objects, but they can use any data type as a key and maintain the order of insertion. Here is an example code for using the map data type:
/* Map */ let myMap = new Map(); myMap.set("name", "John"); myMap.set("age", 30); console.log(myMap.get("name"));
What do you know about...
Array
The array data type represents a collection of values in JavaScript. Arrays can contain any data type, including other arrays and objects. Here is an example code for using the array data type:
/* Array */ let myArray = [1, 2, 3, "four", true, [5, 6, 7]]; console.log(myArray);
What do you know about...
Boolean
The boolean data type represents true or false values in JavaScript. Here is an example code for using the boolean data type:
/* Boolean */ let myBoolean = true; console.log(myBoolean);
What do you know about...
String
The string data type represents a sequence of characters in JavaScript. Here is an example code for using the string data type:
/* String */ let myString = "Hello, world!"; console.log(myString);
What do you know about...
Undefined
The undefined data type represents a variable that has been declared but not assigned a value. Here is an example code for using the undefined data type:
/* Undefined */ let myUndefined; console.log(myUndefined);
What do you know about...
BigInt
The bigint data type represents integers that are larger than the maximum safe integer size in JavaScript. BigInts can be created by appending the letter n to the end of an integer literal. Here is an example code for using the bigint data type:
/* BigInt */ let myBigInt = 12345678901234567890n; console.log(myBigInt);
What do you know about...
WeakMap and WeakSet
The weakmap and weakset data types are similar to the map and set data types, but they allow the garbage collector to reclaim their memory if the only references to their keys or values are weak references. WeakMap and WeakSet can be useful for managing memory in large applications. Here is an example code for using the weakmap and weakset data types:
/* WeakMap and WeakSet */ let myWeakMap = new WeakMap(); let myObject = {}; myWeakMap.set(myObject, "value"); console.log(myWeakMap.get(myObject)); let myWeakSet = new WeakSet(); let myObject2 = {}; myWeakSet.add(myObject2); console.log(myWeakSet.has(myObject2));
What do you know about...
Object
The object data type represents a collection of key-value pairs in JavaScript. Objects can contain other objects, arrays, and functions. Here is an example code for using the object data type:
/* Object */ let myObject = { name: "John", age: 30, address: { street: "123 Main St", city: "Anytown", state: "CA", }, }; console.log(myObject);
What do you know about...
Null
The null data type represents a variable that has been explicitly assigned a null value. Here is an example code for using the null data type:
/* Null */ let myNull = null; console.log(myNull);
What do you know about...
Function
The function represents a block of code that can be called with zero or more arguments. Functions can be defined using function declarations, function expressions, or arrow functions. Here is an example code for using the function:
/* Function */ function myFunction(x, y) { return x + y; } console.log(myFunction(2, 3));
What do you know about...
Set
The set data type represents a collection of unique values in JavaScript. Sets can contain any data type and maintain the order of insertion. Here is an example code for using the set data type:
/* Set */ let mySet = new Set(); mySet.add(1); mySet.add(2); mySet.add(2); // ignored console.log(mySet);
What do you know about...
Date
The date represents a specific date and time in JavaScript. Dates can be created using the Date constructor, which takes the year, month, day, hour, minute, second, and millisecond as arguments. Here is an example code for using the date:
/* Date */ let myDate = new Date(); console.log(myDate);
What do you know about...
Number
The number data type represents both integer and floating point numbers in JavaScript. Here is an example code for using the number data type:
/* Number */ let myNumber = 42; console.log(myNumber);
What do you know about...
Regexp
The regexp represents a regular expression in JavaScript. Regular expressions are used to match patterns in strings. Regexp can be created using the RegExp constructor or using a regular expression literal. Here is an example code for using the regexp:
/* RegExp */ let myRegExp = /hello/; console.log(myRegExp.test("Hello, world!")); // false console.log(myRegExp.test("hello, world!")); // true
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