+ 1

about web...

js

6th Sep 2017, 2:59 PM
Metaaa
15 ответов
+ 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.
6th Sep 2017, 3:10 PM
Ipang
+ 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
6th Sep 2017, 3:29 PM
Ipang
+ 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
6th Sep 2017, 3:36 PM
Ipang
+ 5
Please edit your question, it is not clear what you wish to ask here.
6th Sep 2017, 3:03 PM
Ipang
+ 4
it should be alert("hello world!");
6th Sep 2017, 3:05 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
Try this: <script> alert("Hello, world"); </script> Note the quotes wrapping "Hello, world"
6th Sep 2017, 3:06 PM
Ipang
+ 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
12th Sep 2017, 3:32 AM
Ipang
+ 1
varibles are only their preference?
6th Sep 2017, 3:20 PM
Metaaa
+ 1
hmm..im no undrestand somethings about js.
6th Sep 2017, 3:33 PM
Metaaa
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?
6th Sep 2017, 3:03 PM
Metaaa
0
complete code: <!DOCTYPE html> <html> ... <body> <script> alert(Helloworld) ...
6th Sep 2017, 3:05 PM
Metaaa
0
what is that different?
6th Sep 2017, 3:06 PM
Metaaa
0
var a=2; what is information does it hold? please say an example.
6th Sep 2017, 3:09 PM
Metaaa
0
hi https://code.sololearn.com/WbZ8NJXCGd92/?ref=app can you find mistakes my code?
11th Sep 2017, 6:49 PM
Metaaa
0
Guys!
11th Sep 2017, 6:50 PM
Metaaa