Please send the screenshot of what you are doing so that i can better understand your problem.
This is the code that I cannot understand and do. Whenever I open console of this webpage it shows failed.
THANK YOU MY PROBLEM IS SOLVED.BUT NOW I AM HAVING PROBLEM IN Manipulating HTML content using JS
CAN YOU PLEASE HELP ME AGAIN.
THANK YOU FOR AGAIN HELPING ME
I DID THE SAME YOU TOLD ME AND I DID IT. THANKING YOU WITH RESPECT FOR HELPING ME AGAIN.
Actually i thank you for asking the doubt. Because solving others doubt helps me to brush up my knowledge.
I am also getting the error. But I am not able to resolve. Can you help me out?!
Thanks for your response. But I already got a solution for my query.
Don’t worry about this problem. I hope, I would help you. Have faith and try once again as I suggest you below.
var c = 3 + 4; // Addition operation on numbers.
console.log ("The value of c is ", c);
var x = 2;
var y = 3;
var z = x - y; // Subtraction operation on variables.
console.log ("The value of z is ", z);
var m = x * y; // Multiplication operation on variables.
console.log ("The value of m is ", m);
var n = x / y; // Division operation on variables.
console.log ("The value of n is ", n);
var w = (x * y + 20) - 10 // Arithmetic operation on an expression.
console.log ("The value of w is ", w);
step2: Open a new file in the sublime text and write the below program and save with .html extension
step3: Now go to the folder in which you have saved your html file and right click on it and select open with google chrome
step4: Now you can see a blank page open on your laptop. Right click on the page and go to inspect and then go to console there you can see your output
2.Open HTML file in Google Chrome because some other browsers may not have access to js
Hope you can understand this and let me know if you face any problems further.