Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
SaketKothari
/
freeCodeCamp-JavaScript-Algorithms-and-Data-Structures
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
freeCodeCamp-JavaScript-Algorithms-and-Data-Structures
/
01 Basic JavaScript
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
freeCodeCamp-JavaScript-Algorithms-and-Data-Structures
/
01 Basic JavaScript
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
01 comment your javascript code.js
01 comment your javascript code.js
02 declare javascript variables.js
02 declare javascript variables.js
03 storing values with the assignment operator.js
03 storing values with the assignment operator.js
04 assigning the value of one variable to another.js
04 assigning the value of one variable to another.js
05 initializing variables with the assignment operator.js
05 initializing variables with the assignment operator.js
06 declare string variables.js
06 declare string variables.js
07 understanding uninitialized variables.js
07 understanding uninitialized variables.js
08 understanding case sensitivity in variables.js
08 understanding case sensitivity in variables.js
09 explore differences between the var and let keywords.js
09 explore differences between the var and let keywords.js
10 declare a read only variable with the const keyword.js
10 declare a read only variable with the const keyword.js
100 iterate through an array with a for loop.js
100 iterate through an array with a for loop.js
101 nesting for loops.js
101 nesting for loops.js
102 iterate with javascript do-while loops.js
102 iterate with javascript do-while loops.js
103 replace loops using recursion.js
103 replace loops using recursion.js
104 profile lookup.js
104 profile lookup.js
105 generate random fractions with javascript.js
105 generate random fractions with javascript.js
106 generate random whole numbers with javascript.js
106 generate random whole numbers with javascript.js
107 generate random whole numbers within a range.js
107 generate random whole numbers within a range.js
108 use the parseInt function.js
108 use the parseInt function.js
109 use the parseInt function with a radix.js
109 use the parseInt function with a radix.js
11 add two numbers with javascript.js
11 add two numbers with javascript.js
110 use the conditional ternary operator.js
110 use the conditional ternary operator.js
111 use multiple conditional ternary operators.js
111 use multiple conditional ternary operators.js
112 use recursion to create a countdown.js
112 use recursion to create a countdown.js
113 use recursion to create a range of numbers.js
113 use recursion to create a range of numbers.js
12 subtract one number from another with javascript.js
12 subtract one number from another with javascript.js
13 multiply two numbers with javascript.js
13 multiply two numbers with javascript.js
14 divide one number by another with javascript.js
14 divide one number by another with javascript.js
15 increment a number with javascript.js
15 increment a number with javascript.js
16 decrement a number with javascript.js
16 decrement a number with javascript.js
17 create decimal numbers with javascript.js
17 create decimal numbers with javascript.js
18 multiply two decimals with javascript.js
18 multiply two decimals with javascript.js
19 divide one decimal by another with javascript.js
19 divide one decimal by another with javascript.js
20 finding a remainder in javascript.js
20 finding a remainder in javascript.js
21 compound assignment with augmented addition.js
21 compound assignment with augmented addition.js
22 compound assignment with augmented subtraction.js
22 compound assignment with augmented subtraction.js
23 compound assignment with augmented multiplication.js
23 compound assignment with augmented multiplication.js
24 compound assignment with augmented division.js
24 compound assignment with augmented division.js
25 escaping literal quotes in strings.js
25 escaping literal quotes in strings.js
26 quoting strings with single quotes.js
26 quoting strings with single quotes.js
27 escape sequences in strings.js
27 escape sequences in strings.js
28 concatenating strings with plus operator.js
28 concatenating strings with plus operator.js
29 concatenating strings with the plus equals operator.js
29 concatenating strings with the plus equals operator.js
30 constructing strings with variables.js
30 constructing strings with variables.js
31 appending variables to strings.js
31 appending variables to strings.js
32 find the length of a string.js
32 find the length of a string.js
33 use bracket notation to find the first character in a string.js
33 use bracket notation to find the first character in a string.js
34 understand string immutability.js
34 understand string immutability.js
35 use bracket notation to find the nth character in a string.js
35 use bracket notation to find the nth character in a string.js
36 use bracket notation to find the last character in a string.js
36 use bracket notation to find the last character in a string.js
37 use bracket notation to find the nth-to last character in a string.js
37 use bracket notation to find the nth-to last character in a string.js
38 word blanks.js
38 word blanks.js
39 store multiple values in one variable using javascript arrays.js
39 store multiple values in one variable using javascript arrays.js
40 nest one array within another array.js
40 nest one array within another array.js
41 access array data with indexes.js
41 access array data with indexes.js
42 modify array data with indexes.js
42 modify array data with indexes.js
43 access multi dimensional arrays with indexes.js
43 access multi dimensional arrays with indexes.js
44 manipulate arrays with push.js
44 manipulate arrays with push.js
45 manipulate arrays with pop.js
45 manipulate arrays with pop.js
46 manipulate arrays with shift.js
46 manipulate arrays with shift.js
47 manipulate arrays with unshift.js
47 manipulate arrays with unshift.js
48 shopping list.js
48 shopping list.js
49 write reusable javascript with functions.js
49 write reusable javascript with functions.js
50 passing values to functions with arguments.js
50 passing values to functions with arguments.js
51 return a value from a function with return.js
51 return a value from a function with return.js
52 global scope and functions.js
52 global scope and functions.js
53 local scope and functions.js
53 local scope and functions.js
54 global vs local scope-in functions.js
54 global vs local scope-in functions.js
55 understanding undefined value returned from a function.js
55 understanding undefined value returned from a function.js
56 assignment with a returned value.js
56 assignment with a returned value.js
57 stand in line.js
57 stand in line.js
58 understanding boolean values.js
58 understanding boolean values.js
59 use conditional logic with if statements.js
59 use conditional logic with if statements.js
60 comparison with the equality operator.js
60 comparison with the equality operator.js
61 comparison with the strict equality operator.js
61 comparison with the strict equality operator.js
62 practice comparing different values.js
62 practice comparing different values.js
63 comparison with the inequality operator.js
63 comparison with the inequality operator.js
64 comparison with the strict inequality operator.js
64 comparison with the strict inequality operator.js
65 comparison with the greater than operator.js
65 comparison with the greater than operator.js
66 comparison with the greater than or equal to operator.js
66 comparison with the greater than or equal to operator.js
67 comparison with the less than operator.js
67 comparison with the less than operator.js
68 comparison with the less than or equal to operator.js
68 comparison with the less than or equal to operator.js
69 comparisons with the logical and operator.js
69 comparisons with the logical and operator.js
70 comparisons with the logical or operator.js
70 comparisons with the logical or operator.js
71 introducing else statements.js
71 introducing else statements.js
72 introducing else if statements.js
72 introducing else if statements.js
73 logical order in if else statements.js
73 logical order in if else statements.js
74 chaining if else statements.js
74 chaining if else statements.js
75 golf code.js
75 golf code.js
76 selecting from many options with switch statements.js
76 selecting from many options with switch statements.js
77 adding a default option in-switch statements.js
77 adding a default option in-switch statements.js
78 multiple identical options in switch statements.js
78 multiple identical options in switch statements.js
79 replacing if else chains with switch.js
79 replacing if else chains with switch.js
80 returning boolean values from functions.js
80 returning boolean values from functions.js
81 return early pattern for functions.js
81 return early pattern for functions.js
82 counting cards.js
82 counting cards.js
83 build javascript objects.js
83 build javascript objects.js
84 accessing object properties with dot notation.js
84 accessing object properties with dot notation.js
85 accessing object properties with bracket notation.js
85 accessing object properties with bracket notation.js
86 accessing object properties with variables.js
86 accessing object properties with variables.js
View all files
You can’t perform that action at this time.