Answers for ""?" javascript"

3

javascript

let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
Posted by: Guest on December-13-2019
1

${} js

let x = 5;
console.log("hello world " + x + " times");
console.log(`hello world ${x} times`);
Posted by: Guest on November-17-2020
0

javascaript

Javascript é uma linguagem capaz de desenvolver desde Páginas web até jogos
Posted by: Guest on December-14-2020
0

... javascript

/* Spread syntax ( ex. ...arrayName) allows an iterable such as an array expression or string 
to be expanded in places where zero or more arguments (for function calls) 
elements (for array literals) are expected, or an object expression to be 
expanded in places where zero or more key-value pairs (for object literals) 
are expected. */


//example
function sum(x, y, z) {
  return x + y + z;
}
Posted by: Guest on May-10-2020
0

javascript

test // a java object
				
// create a new property
test.newProperty = "new Property"

// create a new method
test.newMethod = function () { return "new Method"; }

Object.defineProperty(test, 'defProperty', {
  value: "define Property"
});

console.log(test.defProperty);
// define Property

console.log(test.newMethod());
// new Method

console.log(test.newProperty);
// new Property
Posted by: Guest on June-04-2021
0

!! javascript

!! !! it's short way to cast a variable to be a boolean (true or false) value
Posted by: Guest on May-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language