DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript convert character to ascii
var
x
=
'B'
;
var
ascii_code
=
x
.
charCodeAt
(
0
)
;
console
.
log
(
ascii_code
)
;
Source by www.delftstack.com #
PREVIOUS
NEXT
Tagged:
#javascript
#convert
#character
#ascii
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit