कंसोल से फ़ंक्शन कॉल करना
कंसोल से JavaScript फ़ंक्शन कॉल करने के लिए, निम्नलिखित कोड चलाएं:
उदाहरण
<!DOCTYPE html> <html>
<body>
<script>
var display = {
displayOne: function(){ return "displayTwo" ;}
};
console.log(display.displayOne());
</script>
</body>
</html>