Created
January 10, 2018 01:13
-
-
Save MirzaChilman/f95422ed45b8d533560b7a83e75b2ca0 to your computer and use it in GitHub Desktop.
method2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var kata = "javascript"; | |
document.write(kata.charCodeAt(0)+'<br>');//106 | |
document.write(kata.charCodeAt(1)+'<br>');//97 | |
document.write(kata.charCodeAt(2)+'<br>');//118 | |
document.write(kata.charCodeAt(3)+'<br>');//97 | |
document.write(kata.charCodeAt(4)+'<br>');//115 | |
document.write(kata.charCodeAt(5)+'<br>');//99 | |
document.write(kata.charCodeAt(6)+'<br>');//114 | |
document.write(kata.charCodeAt(7)+'<br>');//105 | |
document.write(kata.charCodeAt(8)+'<br>');//112 | |
document.write(kata.charCodeAt(9)+'<br>');//116 | |
// Note : <br> = break rule yang berarti memberi 1 enter atau space ke bawah | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment