+ 1
about web...
js
15 Answers
+ 6
Difference:
"Hello, world" is a string to show in alert box.
Helloworld is assumed as variable by JS, but you didn't declare it, there's no variable by the name Helloworld, that's why it didn't work.
+ 6
Variables are temporary storage for values, variables can contain string, numbers, and many more types of values. Your last question:
var a = 2;
Declare a variable named a, and assign a numeric value 2 into it. You can later on use the content of the variable by referring to its name.
alert("value of a is : " + a);
[Note]
@Metaaa, if you're interested in this I suggest you join the HTML, CSS, and JavaScript course, it's fun! go and give it a try!
Hth, cmiiw
+ 6
Then you have good reason to join the course, by joining the course you learn, by learning, you will understand, I see you joined Java course already, but if you want to make web page you start with HTML, then move on to CSS, and finally, JavaScript. Good luck.
Hth, cmiiw
+ 5
Please edit your question, it is not clear what you wish to ask here.
+ 4
it should be
alert("hello world!");
+ 4
Try this:
<script>
alert("Hello, world");
</script>
Note the quotes wrapping "Hello, world"
+ 3
@Metaaa your frames code was incorrect, you can't mix rows and cols specification on a <frameset>. Furthermore, frames are deprecated (no longer supported) by HTML 5 standard. I still don't see you in HTML class, you can learn how to design your HTML page without frames in there.
Here's a reading about HTML frames, look it up, just for reference:
https://www.tutorialspoint.com/html/html_frames.htm
Hth, cmiiw
+ 1
varibles are only their preference?
+ 1
hmm..im no undrestand somethings about js.
0
why for me ,in my pc when right code <script>alert(helloworld)</script> does not run "helloworld" in my page web?
I should save my file with HTML format and UTF-8?
0
complete code:
<!DOCTYPE html>
<html>
...
<body>
<script>
alert(Helloworld)
...
0
what is that different?
0
var a=2;
what is information does it hold? please say an example.
0
hi https://code.sololearn.com/WbZ8NJXCGd92/?ref=app can you find mistakes my code?
0
Guys!