?? javascript
❤ We will always love you javascript! ❤
JavaScript
let num = 10;
console.log(); // 2
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
JavaScript is a Object-Oriented Programming Language. It is very easy, making it high level.
... 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;
}
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