Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

first digit javascript

function solution(inputString) {
    let firstDigit = inputString.match(/d/);
    return firstDigit ? firstDigit[0] : '0';
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: mongodb filter array 
Javascript :: number pyramid in javascript 
Javascript :: rgb to hex js 
Javascript :: javascript fill array 
Javascript :: style font size javascript 
Javascript :: split a message 
Javascript :: string contains in javascript 
Javascript :: Triplets summing up to a target value 
Javascript :: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported 
Javascript :: number validation in javascript 
Javascript :: ajax load spesific element from another page 
Javascript :: immediately invoked function in javascript 
Javascript :: discord.js send message to specific channel 
Javascript :: javascript maximum date 
Javascript :: detect two strings are anagram of each other in JavaScript 
Javascript :: send file discord js v12 
Javascript :: mongoose populate filter 
Javascript :: digit count in javascript 
Javascript :: sort a dictionary by value in javascript 
Javascript :: get span text jquery 
Javascript :: delete all node modules 
Javascript :: save token in localstorage 
Javascript :: add variable numerically in javascript 
Javascript :: javascript dedupe array 
Javascript :: javascript function convert bytes into mb 
Javascript :: react native shaddow 
Javascript :: how to make required field in jquery false 
Javascript :: jquery validator no space 
Javascript :: react check if in mobile 
Javascript :: get status bar height react native 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =