fungsi yang mengembalikan string javascript
function returnString(a) {
return `something ${a}`;
}
Anthony Smith
function returnString(a) {
return `something ${a}`;
}
function devolverString (str){
var str
return str
var states = {
'AL': 'Alabama',
'AK': 'Alaska',
'AZ': 'Arizona',
'AR': 'Arkansas',
'CA': 'California',
'CO': 'Colorado',
'CT': 'Connecticut',
...
'WY': 'Wyoming'
};
var stateName = states["WY"];