- Reverse a string
//Reverse a string
js const reverseString = (input) => input.split("").reverse().join("");
console.log(reverseString("apple")); // "elppa"
{ | |
"countries": [ | |
{ "text": "Afghanistan (+93)", "value": "93" }, | |
{ "text": "Albania (+355)", "value": "355" }, | |
{ "text": "Algeria (+213)", "value": "213" }, | |
{ "text": "Andorra (+376)", "value": "376" }, | |
{ "text": "Angola (+244)", "value": "244" }, | |
{ "text": "Antigua and Barbuda (+1-268)", "value": "1-268" }, | |
{ "text": "Argentina (+54)", "value": "54" }, | |
{ "text": "Armenia (+374)", "value": "374" }, |
<select id="currencyList"> | |
<option value="USD" selected="selected" label="US dollar">USD</option> | |
<option value="EUR" label="Euro">EUR</option> | |
<option value="JPY" label="Japanese yen">JPY</option> | |
<option value="GBP" label="Pound sterling">GBP</option> | |
<option disabled>ββββββββββ</option> | |
<option value="AED" label="United Arab Emirates dirham">AED</option> | |
<option value="AFN" label="Afghan afghani">AFN</option> | |
<option value="ALL" label="Albanian lek">ALL</option> | |
<option value="AMD" label="Armenian dram">AMD</option> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
<title>New York Times</title> | |
</head> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>API</title> | |
</head> | |
<body> | |
<div class="imageDiv"> |
*{ | |
background-color:lightgoldenrodyellow; | |
color: black; | |
font-size: 12px; | |
font-weight: bold; | |
text-align: center; | |
font-family:sans-serif; | |
} | |
div.header, div > h4, div > p | |
{ |