This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var a = b = 3; | |
})(); | |
console.log("a defined " + (typeof a != 'undefined')); | |
console.log("b defined " + (typeof b != 'undefined')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int main () { | |
int chooseAnother; | |
bool isTrue = true; | |
while(isTrue == true) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let array1 = [1,2,3,9]; | |
let array2 = [1,2,4,4]; | |
//make a program that goes through each of these arrays and can | |
//return to you whether 2 numbers add to equal 8 | |
for(let i = 0;i<array2.length;i++) { | |
for(let j = 0;j < array2.length;j++) { | |
if(array2[i] + array2[j] === 8) { | |
console.log(array2[i] + ' and ' + array2[j] +' add to equal 8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let array1 = [1,2,3,9]; | |
let array2 = [1,2,4,4]; | |
//make a program that goes through each of these arrays and can | |
//return to you whether 2 numbers add to equal 8 | |
for(let i = 0;i<array2.length;i++) { | |
for(let j = 0;j < array2.length;j++) { | |
if(array2[i] + array2[j] === 8) { | |
console.log(array2[i] + ' and ' + array2[j] +' add to equal 8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let array1 = [1,2,3,9]; | |
let array2 = [1,2,4,4]; | |
//make a program that goes through each of these arrays and can | |
//return to you whether 2 numbers add to equal 8 | |
for(let i = 0;i<array2.length;i++) { | |
for(let j = 0;j < array2.length;j++) { | |
if(array2[i] + array2[j] === 8) { | |
console.log(array2[i] + ' and ' + array2[j] +' add to equal 8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let array1 = [1,2,3,9]; | |
let array2 = [1,2,4,4]; | |
//make a program that goes through each of these arrays and can | |
//return to you whether 2 numbers add to equal 8 | |
for(let i = 0;i<array2.length;i++) { | |
for(let j = 0;j < array2.length;j++) { | |
if(array2[i] + array2[j] === 8) { | |
console.log(array2[i] + ' and ' + array2[j] +' add to equal 8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main () { | |
class person = new class(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main () { | |