In this example, We will see = assignment operator, Here we have a variable x and we are assigning it value as 10 and printing that html, See the code snippet:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to LearnKode - A code learning platform</title>
</head>
<body>
<h2>= Operator</h2>
<p id="sample"></p>
<script>
var x=10;
document.getElementById("sample").innerHTML = x;
</script>
</body>
</html>