Basic JavaScript Question:

Download Job Interview Questions and Answers PDF

How to get printed below characters as it is using JavaScript?


ʻsales person of the yearʼ
Microsoft's
»

ʻ
ʼ
'
x



"
Φ
-
ö
£



-
"
″'
µ',
°',
θ',
θ',
















JavaScript Interview Question
JavaScript Interview Question

Answer:

Solution Is:
<script>
ducument.write(encodeURI(►));
OR
ducument.write(encodeURIComponent(►));
</script>

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
How to write Hello World on the web page?What is JavaScript?