Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
function hex(str) {
  let result = "";
  str.split("").forEach(ch => {
    result += "U+" + ("0000" + ch.codePointAt(0).toString(16).toUpperCase()).slice(-4);
  });
  return result;
}
function output(ch, c) {
  const chCase = c === "u" ? "Upper" : "Lower";
  const result = ch[`to${chCase}Case`]();
  console.log(`${ch} ('${hex(ch)}') → ${result} ('${hex(result)}'; to${chCase}Case)`);
}
output("\u00df", "l");
output("\u00df", "u");
output("\u1e9e", "l");
output("\u1e9e", "u");
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers