Developer community
0 votes
1.4k views
asked by Expert (15k points) 15 23 31 | 1.4k views

1 Answer

0 votes
The hexadecimal numbers are converted to decimal numbers in all arithmetic operations.
 
<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript">
       var hexNum = 0xA; 
       document.writeln(hexNum); //10 
       var aNum = 123; 
       document.writeln(hexNum + aNum); //133       
    </script>
 
</head>
<body>
  
</body>
</html>
 
 
answered by Sr Member (5k points) 7 9 12

Related questions

0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 1.2k views
0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 14 views
0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 26 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 35 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 13 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users