Skip to content
Open

Ahoy #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions complexity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function a(x) {
console.log("hey")
console.log("hey hey")
}
44 changes: 44 additions & 0 deletions newfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
function a(x) {
if (true) {
return x; // 1st path
} else if (false) {
if (false) {
return x+1; // 2nd path
} else {
if (false) {
return x+1; // 2nd path
} else {
if (false) {
return x+1; // 2nd path
} else {
return 4; // 3rd path
}
}
}
} else {
return 4; // 3rd path
}
}

function b(x) {
if (true) {
return x;
} else if (false) {
return x + 1;
} else if (true) {
return 4;
} else if (true) {
return 5;
} else {
return 6;
}
}

var snake_cake = 'single';
var camelCase = "double";

var obj = {
snake_case : 1,
camelCase : 2
};

3 changes: 3 additions & 0 deletions zero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function zero(x) {

}