Realated Questions
What will be the output of the following code snippet?
(function(a){ return (function(){ console.log(a); a = 6; })() })(21);
What will be the output for the following code snippet?
<p id="example"></p> <script> function sQFunc() { document.getElementById("example").innerHTML=Math.sqrt(81); } sQFunc(); </script>
What will be the output of the following code snippet?
const example = ({ a, b, c }) => { console.log(a, b, c); }; example(0, 1, 2);