Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

7.3.2. Length or .length

/*The most useful string property is named length, and it tells us how 
many characters are in a string.*/

let firstName = "Grace";
let lastName = "Hopper";

console.log(firstName, "has", firstName.length, "characters");
console.log(lastName, "has", lastName.length, "characters");

//Grace has 5 characters
//Hopper has 6 characters 
Comment

PREVIOUS NEXT
Code Example
Javascript :: 7.7. Unicode Table 
Javascript :: elasticsearch performance 
Javascript :: react-leaflet/core/cjs/pane.js:7%20error15-Jun-2021%2000:45:06%20%20%20%20%20%20const%20pane%20=%20props.pane%20??%20context.pane; 
Javascript :: node js passport local for sqlite 
Javascript :: delete multiple nodes in firebase realtime database 
Javascript :: if statement inside a function in javascript 
Javascript :: isempty is not a function javascript 
Javascript :: strip add usage api docuemntation 
Javascript :: scope hierarchy in angularjs 
Javascript :: mongoose geospatial Schema Options 
Javascript :: javascript show popup on page refresh unsaved changes 
Javascript :: redefineFunction 
Javascript :: sorting json array by key in angular 9 
Javascript :: javascript Ecrire une fonction afficherTable2() qui affiche la table de multiplication de 2 dans le contenu d’un élément p. 
Javascript :: no longer in view js 
Javascript :: moodle confirm box 
Javascript :: javascript loop Tool 
Javascript :: change background color js tinymce 
Javascript :: all callbacks and function for iCheck plugin 
Javascript :: javascript call url without going to it 
Javascript :: parsing data to node application 
Javascript :: addingbackground image in nodejs 
Javascript :: How to Create a “Sticky” Floating Footer Bar in WordPress 
Javascript :: take user value and append value in js 
Javascript :: how to get all key values of Json 
Javascript :: node equivalent of bash exec 
Javascript :: Scrub punctuation character 
Javascript :: globalevariable reactjs 
Javascript :: can i use promise.all conditional in vue js 
Javascript :: too many rerenders 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =