vox-core
Version:
Runtime de aplicaciones multiplataforma
75 lines (50 loc) • 990 B
JavaScript
const j=12;
0b111110111 === 503;
0o767 === 503;
var obj = { x, y };
var test=0;
var {a:d,b,c}= obj;
var list= [1,2], [a,,b]= list, [c,d]=[1,0];
[k,l,,m]= op;
[k,l,,m]= (x)=>x+1;
var obj = {
foo: "bar",
[ "baz" + quux() ]: 42
};
var mm= {
bar(a,b,...c){
}
}
message = `Hello ${customer.name},
want to buy ${card.amount} ${card.product} for
a total of ${card.amount * card.unitprice -2} bucks?`;
var k= function(x=2){
console.log(x => x+10);
}
var k= function(x=2, ...a){
console.log(a.length);
}
var odds = evens.map(v => v + 1);
var odds = evens.map(v => v + this.j);
var odds = evens.map(v => {
return v + this.j+ (x => {
return this.xd1+1
})(this.l)
});
nums.forEach(v => {
if (v % 5 === 0)
fives.push(v);
})
{
class James{
constructor(options){
this.options=options;
}
terreno(par1){
super.apply(10);
}
terreno2(par1){
super(10);
}
}
}