Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

function last character return

//function to return last character in word 
function lastChar(number){
    const str = number
    console.log(str.charAt(str.length-1));
}

lastChar('sun'); //n
Comment

PREVIOUS NEXT
Code Example
Javascript :: polling interval javascript 
Javascript :: how to get the last element in an array 
Javascript :: define nasty 
Javascript :: loop through async javascript -2 
Javascript :: javascript update page when json file changes 
Javascript :: jshack1 
Javascript :: get data from mulitple query parameters react 
Javascript :: python to javascript converter 
Javascript :: find in array and return true or false react js 
Javascript :: enquire js - simple media query library for Javascript 
Javascript :: alpinejs checknox selectAll 
Javascript :: preventClosingTab 
Javascript :: react Alert when rate changes 
Javascript :: javascript replace char if not present another character 
Javascript :: document.elementsFromPoint 
Javascript :: how to get value from select option using input name in jquery 
Javascript :: how to check if a string contains a specific word in javascript 
Javascript :: GET / - - ms - - node js 
Javascript :: I want to enable textbox when checkbox is checked in jquery or javascript 
Javascript :: apps script convert a1notation to row column 
Javascript :: javascript to send email on button click 
Javascript :: history go back js oneline 
Javascript :: Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse 
Javascript :: React Hook "useState" is called in function "cardState" which is neither a React function component or a custom React Hook function 
Javascript :: patch if else use 
Javascript :: filtering buttons parseint javascript 
Javascript :: destructuring assignment js 
Javascript :: javascript get distance bwetween elements 
Javascript :: javascript remove null object 
Javascript :: node_modules imers-browserifymain.js 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =