19 lines
447 B
Markdown
19 lines
447 B
Markdown
# satranc.js — tasEtiket() (satır 37)
|
||
|
||
[← satranc.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function tasEtiket(tas)
|
||
{
|
||
if (tas === "") return "";
|
||
var tip = tas.charAt(1);
|
||
if (tip === "P") return "Pi";
|
||
if (tip === "K") return "Ka";
|
||
if (tip === "A") return "At";
|
||
if (tip === "F") return "Fi";
|
||
if (tip === "V") return "Ve";
|
||
if (tip === "S") return "Sh";
|
||
return "";
|
||
}
|
||
```
|