Answers for "print var console.log js"

1

how to console.log variable in js

<script>
var a = 2;
console.log("The value of a is " + a);
</script>
Posted by: Guest on December-03-2021
-1

change console log to print javascript

function print(value) {
    console.log(value)
}

print("Hello")
Posted by: Guest on May-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language