Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

tolowercase

const sentence = 'The quick brown fox jumps over the lazy dog.';

console.log(sentence.toLowerCase());
// expected output: "the quick brown fox jumps over the lazy dog."
Comment

.toLowerCase

let string = `Your Text Here`.toLowerCase(); //returns "your text here"
Comment

lowercase

/[A-Z]/  : 'must contain one uppercase'

/([a-z])/  : 'must contain one lowercase'

/(d)/  : 'must contain one number'

/(W)/  : 'must contain one special character'
Comment

how to use .tolowercase

.toLowerCase is a command you can you to make pieces of string 
into lowercase when printed with console.log
Ex. 
// This is the variable we will be using
let Greeting = 'Hi!';
//Then, we reassign the variable to use the command
Greeting = .toLowercCase
// Print = hi!

Happy Codings!



Comment

PREVIOUS NEXT
Code Example
Javascript :: how to push only unique values in array in javascript 
Javascript :: comment in react 
Javascript :: vscode regex replace only group 
Javascript :: refresh current component angular 
Javascript :: javascript for...of index 
Javascript :: how to divide array in two parts in js 
Javascript :: this is a problem related to network connectivity npm 
Javascript :: express get raw path 
Javascript :: call function on modal open 
Javascript :: content editable vuejs 
Javascript :: socket io client 
Javascript :: how to fetch api in reactjs using axios 
Javascript :: sort array of objects javascript by date 
Javascript :: how to detect which key is pressed in javascript 
Javascript :: javascript string change character at index 
Javascript :: boucle for javascript 
Javascript :: draw image onto canvas js 
Javascript :: fetch data flutter json 
Javascript :: get next element of array javascript 
Javascript :: javascript add function to onchange event 
Javascript :: nodejs request api 
Javascript :: check if message mentions users discord js 
Javascript :: javascript error discord 
Javascript :: how get value of json encode in laravel 
Javascript :: insert json file in python 
Javascript :: ngmodel onchange 
Javascript :: node js timestamp format 
Javascript :: how to get the url of a page in javascript 
Javascript :: javascript negative infinity 
Javascript :: javascript date add days 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =