?? javascript
❤ We will always love you javascript! ❤
javascript
const array = [2, 5, 9];
console.log(array);
const index = array.indexOf(5);
if (index > -1) {
array.splice(index, 1);
}
// array = [2, 9]
console.log(array);
javascript
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
javascript
What is JavaScript used for?
Adding interactive behavior to web pages. JavaScript allows users to interact with web pages. ...
Creating web and mobile apps. Developers can use various JavaScript frameworks for developing and building web and mobile apps. ...
Building web servers and developing server applications. ...
Game development.
js %
/*The remainder operator (%) returns the remainder left
over when one operand is divided by a second operand.
It always takes the sign of the dividend.*/
console.log(12 % 5);
// expected output: 2
console.log(-12 % 5);
// expected output: -2
console.log(4 % 2);
// expected output: 0
console.log(-4 % 2);
// expected output: -0
javascript
const array = [2, 5, 9];
console.log(array);
const index = array.indexOf(5);
if (index > -1) {
array.splice(index, 1);
}
// array = [2, 9]
console.log(array);
javascript
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
javascript
What is JavaScript used for?
Adding interactive behavior to web pages. JavaScript allows users to interact with web pages. ...
Creating web and mobile apps. Developers can use various JavaScript frameworks for developing and building web and mobile apps. ...
Building web servers and developing server applications. ...
Game development.
js %
/*The remainder operator (%) returns the remainder left
over when one operand is divided by a second operand.
It always takes the sign of the dividend.*/
console.log(12 % 5);
// expected output: 2
console.log(-12 % 5);
// expected output: -2
console.log(4 % 2);
// expected output: 0
console.log(-4 % 2);
// expected output: -0
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us