main.js
unknown
plain_text
2 years ago
561 B
7
Indexable
// alert('Hello World!');
let myInput = "";
for (let x=1; x<=5; x++) {
  console.log("Count is: " + x);
}
function HelloWorld (prize) {
  alert('Jackpot Prize is ' + prize);
}
function valueChange (event) {
  console.log("onchange " + event.target.value);
  myInput = event.target.value; 
}
function displayValue () {
  alert(`the current input is ${myInput}`);
}
function winToday (param1, param2) {
  const result = param1 + param2;
  return result;
}
let myx = 0;
myx = "this is a string now";
console.log("Result is: " + winToday("here it is", 7));Editor is loading...