-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
Description
var [hello, world] = ["Hello", "world"];
console.log(`${1}`);
var {hello, world} = {hello: "Hello", world: "world"};
console.log(null);
includes are missing:
#include <stdlib.h>
#include <assert.h>
var log = console.log; log("Hello world!");
var log = console.log;
var log = { console: console.log };
log.console("Hello worlld!");
function sayHelloGeneratorGenerator(helloBello) {
if(helloBello) {
return function() {
return function() {
return "Hello";
};
};
} else {
return function() {
return function() {
return "Bello";
};
};
}
}
var sayHelloGenerator = sayHelloGeneratorGenerator(true);
var sayHello = sayHelloGenerator();
console.log(sayHello());
var sayHelloGenerator1 = sayHelloGeneratorGenerator(false);
var sayHello1 = sayHelloGenerator1();
console.log(sayHello1());
var x = [1,2,3,4, "Hello world!"];
for(var i = 0; i < x.length; i++) {
console.log(x[i]);
}
var x = [1,2,3,4,null];
for(var i = 0; i < x.length; i++) {
console.log(x[i]);
}
includes are missing:
#include <stdlib.h>
#include <assert.h>
- same with
var x = [1,2,3,4,undefined];
- and same with
var x = [1,2,3,4,NaN];
var x = [1,2,3,4, Infinity];
for(var i = 0; i < x.length; i++) {1
console.log(x[i]);
}
const obj = {
get zero() {
return 0;
}
};
let zero = obj.zero;
console.log();
this should print a blank line to the terminal, but instead, the output is:
#include <stdio.h>
int main(void) {
undefined;
return 0;
}