JavaScript is an open source programming language created in 1995 by Brendan Eich.
#2on PLDB | 28Years Old | 16mRepos |
JavaScript (), often abbreviated as JS, is a high-level, dynamic, weakly typed, prototype-based, multi-paradigm, and interpreted programming language. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production. It is used to make webpages interactive and provide online programs, including video games. Read more on Wikipedia...
console.log("Hello, world!");
console.log("Hello World");
// Hello world in JavaScript
console.log("Hello World");
alert("dude!")
var minstake = 0.00000100; // valor base
//-----------------------------------------
var autorounds = 99; // n掳 de rolls
//======================================================
// if (profit > profit_max) {
// error_title = "Maximum profit exceeded";
// error_info = "Maximum profit: " + number_format(profit_max, devise_decimal);
// error_value = "Maximum profit exceeded - Maximum profit: " + number_format(profit_max, devise_decimal);
// error = true;
// }
// else if (amount > balance) {
// error_title = "Bet amount";
// error_info = "Maximum bet: " + number_format(balance, devise_decimal);
// error_value = "Bet amount - Maximum bet: " + number_format(balance, devise_decimal);
// error = true;
// }
var handbrake = 1.0000000; // valor lose pause game
var autoruns = 1;
// else if (amount > bet_max) {
// error_title = "Bet amount";
// error_info = "Maximum bet: " + number_format(bet_max, devise_decimal);
// error_value = "Bet amount - Maximum bet: " + number_format(bet_max, devise_decimal);
// error = true;
// }
// else if (amount < bet_min) {
// error_title = "Bet amount";
// error_info = "Minimum bet: " + number_format(bet_min, devise_decimal);
// error_value = "Bet amount - Minimum bet: " + number_format(bet_min, devise_decimal);
// error = true;
// }
function playnow() {
if (autoruns > autorounds ) { console.log('Limit reached'); return; }
document.getElementById('double_your_btc_bet_hi_button').click();
setTimeout(checkresults, 1000);
return;}
function checkresults() {
if (document.getElementById('double_your_btc_bet_hi_button').disabled === true) {
setTimeout(checkresults, 1000);
return;
}
var stake = document.getElementById('double_your_btc_stake').value * 1;
var won = document.getElementById('double_your_btc_bet_win').innerHTML;
if (won.match(/(\d+\.\d+)/)聽!== null) { won = won.match(/(\d+\.\d+)/)[0]; } else { won = false; }
var lost = document.getElementById('double_your_btc_bet_lose').innerHTML;
if (lost.match(/(\d+\.\d+)/)聽!== null) { lost = lost.match(/(\d+\.\d+)/)[0]; } else { lost = false; }
if (won &&聽!lost) { stake = minstake; console.log('Bet #' + autoruns + '/' + autorounds + ': Won ' + won + ' Stake: ' + stake.toFixed(8)); }
if (lost &&聽!won) { stake = lost * 2.1; console.log('Bet #' + autoruns + '/' + autorounds + ': Lost ' + lost + ' Stake: ' + stake.toFixed(8)); }
if (!won &&聽!lost) { console.log('Something went wrong'); return; }
document.getElementById('double_your_btc_stake').value = stake.toFixed(8);
autoruns++;
if (stake >= handbrake) {
document.getElementById('handbrakealert').play();
console.log('Handbrake triggered! Execute playnow() to override');
return;
}
setTimeout(playnow, 1000);
return;
}playnow()
The name Java in JavaScript was pure marketing: "At the time, the dot-com boom had begun and Java was the hot new language, so Eich considered the JavaScript name a marketing ploy by Netscape"
abstract arguments await boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield