Variables in JavaScript

Actually,I can not understand and do Arithmetic operations in JS. I am having difficulty in making javascript and I am not knowing in which programme I have to do this in.And whenever I do steps of console it shows error.Somebody please help to solve this problem.Please tell me what to do in https://trainings.boltiot.com/courses/429176/lectures/6577950

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.

Like this

In this code you have written a line src=“my-javascript.js” basically the task of this command is that it allow the current html code to load or link to another file which is defined by the line src=“my-javascript.js”. As you haven’t created my-javascript.js file and you are accessing a file that doesn’t exist. So that’s why you are getting an error. First create a file my-javascript.js then you can run your program without any error .

THANK YOU MY PROBLEM IS SOLVED.BUT NOW I AM HAVING PROBLEM IN Manipulating HTML content using JS
CAN YOU PLEASE HELP ME AGAIN.


See it is not showing output.Please help me.

In this code you have entered the wrong name of your .js file. You have entered my-javascript.js but i can see that the actual name of .js file is manuplate.js. I think this is the reason for the error.

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.
with respect

1 Like

Actually i thank you for asking the doubt. Because solving others doubt helps me to brush up my knowledge.

1 Like

Variables in Javascript
I am also getting the error. But I am not able to resolve. Can you help me out?!

Can you share the screenshot of your JavaScript file?

Thanks for your response. But I already got a solution for my query.

1 Like