Skip to content

A JavaScript repository for all of my JavaScript practice codes. Contains API & others.

Notifications You must be signed in to change notification settings

whoafridi/Play-with-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play-with-JavaScript

A JavaScript repository for all of my JavaScript practice codes

Recursion ---

// Define the function
function sum(i){
	if (i==0){
		return "Zero"
	}
  if (i==1){
        return 1;
    }
    return sum(i-1) + i;
}
# call the function
console.log(sum(0));