Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Say Hello Say Bye in javascript

function sayHelloBye(name, num) {
	if (num === 1) return ("Hello " + name.charAt(0).toUpperCase() + name.slice(1));
	else if (num ===0) return ("Bye " + name.charAt(0).toUpperCase() + name.slice(1));
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to change the model object django in javascript 
Javascript :: ajax data does not support alphabets 
Javascript :: selenium how to automate javascript dialogs 
Javascript :: how to save image in fabruc js json 
Javascript :: encriptar exadecimal con cryptojs 
Javascript :: send json object to xsjs 
Javascript :: using shortid in react lists 
Javascript :: deferred promise testing es6 
Javascript :: how to iterate in array of array 
Javascript :: react padding at bottom svg 
Javascript :: how to change grid size with conditional expression in react 
Javascript :: customize please select some product options before wordpress message 
Javascript :: get selected value on componentdidmount reactjs 
Javascript :: jquery how to detect click outside off-canvas-navigation 
Javascript :: .keyinselect 
Javascript :: ajax comet 
Javascript :: strip js for subscription 
Javascript :: js code to run hello world 
Javascript :: javscript send ajax request only if submit is valid 
Javascript :: what is reactive method 
Javascript :: array con tridimensional javascript 
Javascript :: como arreglar el error de Linking.openUrl no funciona react native 
Javascript :: js alarm go to url 
Javascript :: smmoth scroll js 
Javascript :: delete duplicate json object from json object javascript 
Javascript :: jlkjl 
Javascript :: how to pass an id to the route of a seprate file react 
Javascript :: Popup is not working 
Javascript :: resolver not showing content angular 
Javascript :: 4.7.2. Compound Assignment Operators¶ 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =