Javascript Test
Javascript Test
1. I created a file script.js. I added it in HTML document and then I start adding code in
script.js like
<script>
alert(“Hello
Hello World
World”);
</script>
Am I doing something rightright?
2. What will be the possible output
output/outputs of the following code:
2 % console.log(20 % 6);
3. What will be the possible output
output/outputs of the following snippet, If I input -3
console.log(-prompt());
4. What will be the output of the following: