Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

use of length property

const fruits = ['Apple', 'Orange', 'Strawberry'];
fruits.length = 2;

console.log(fruits); // [ 'Apple', 'Orange' ]
Code language: JavaScript (javascript)
Comment

PREVIOUS NEXT
Code Example
Javascript :: form- text area react 
Javascript :: stripe delete product 
Javascript :: react native bottom sheet 
Javascript :: vue js set array value by key 
Javascript :: inline styling react 
Javascript :: javascript get response payload 
Javascript :: list of string angular 
Javascript :: redux-logger 
Javascript :: nodejs mysql transactions 
Javascript :: download file from api response 
Javascript :: react native layout 
Javascript :: e parameter in javascript 
Javascript :: how to target two id using jquery 
Javascript :: nextjs local storage 
Javascript :: dropdown hide 
Javascript :: js csv to json 
Javascript :: aws lambda send json 
Javascript :: create canvas p5 
Javascript :: new js 
Javascript :: react state 
Javascript :: js to find min value in an array 
Javascript :: getting started with react 
Javascript :: array.sort 
Javascript :: call,bind and apply in javascript 
Javascript :: text slider in react js 
Javascript :: javascript await keyword 
Javascript :: run function after another function javascript 
Javascript :: get date format javascript 
Javascript :: Group item by date 
Javascript :: module 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =