Getting Started with JavaScript🎉

AnjaliAnjali
1 min read

console.log

Is a function in JavaScript used to display data in the console. It's commonly used for debugging purposes or to output information while developing JavaScript applications. It can print strings, variables, objects, and other data types to the console.

for example:-

console.log("Hello Friends✋");
console.log('Hello Friends✋');
console.log(`Hello Friends✋`);

In JavaScript, strings can be enclosed in double quotes ("), single quotes ('), or backticks (` `). All three of these formats can be used with console.log() to print strings to the console.

0
Subscribe to my newsletter

Read articles from Anjali directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Anjali
Anjali