generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Question about JavaScript.

Previous Thread :: Next Thread 
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
28 Jul 2016 11:10 PM
I want to try to make a website. I know HTML and CSS. However, those are more for the aesthetics, and I have no idea what to do about the "brain" of it all.

Is that where JS comes in? Also, sorry for the bad format, this got censored like 293897593 times and I was getting frustrated.

u sicko!
Report Abuse
eter is not online. eter
Joined: 27 Jul 2008
Total Posts: 10523
28 Jul 2016 11:14 PM
I know all three and Javascript is where all the code ends up being.
HTML and CSS really just are the aesthetics as you said.
I had already known java, but all you need to do is just type all your questions into google.
If you want to get input from the user you need to mess with some stuff in HTML, but most of the coding is in javascript.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 Jul 2016 11:15 PM
You should most certainly look into php. It's how you'll handle everything like cookies, logging in, etc.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
28 Jul 2016 11:18 PM
php = ?
Also, is JavaScript more like HTML or more like Lua?

u sicko!
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 Jul 2016 11:19 PM
Javascript has more similarities to Lua. Javascript is a programming language, html is a markup language.

Php is more like the brain of a website.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
28 Jul 2016 11:21 PM
PHEW
I heard it was close to Lua, which is the language I'm most familiar with (Probably thanks to this website).

So what do I do with the JavaScript and PHP and how do I get them working with my current HTML and CSS files?

u sicko!
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 Jul 2016 11:24 PM
soooo apparently headers break roblox's filter for the forums, so here:
hastebin.com/raw/aporohiven
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
28 Jul 2016 11:30 PM
JS example:

function dosomething(txt) {
print(txt);
}

var no = 3;

if (no == 3) {
dosomething("yes");
}

if (no != 0) {
dosomething("twice");
} else {
dosomething("nope");
}


Lua example:

function dosomething(txt)
print(txt)
end

local no = 3

if no == 3 then
dosomething("yes")
end

if no ~= 0 then
dosomething("twice")
else
dosomething("nope")
end

--of course you cant use 'print' unless you have a function that supports it but this is a simple conversion
Report Abuse
eter is not online. eter
Joined: 27 Jul 2008
Total Posts: 10523
29 Jul 2016 12:04 AM
I learned both PHP and Javascipt
I used javascript for the tiny website I made for school, but i would recommend PHP it's so much better.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
29 Jul 2016 12:12 AM
I prefer the mean stack. It's basically js for days, so you just need to learn one language + API
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
29 Jul 2016 12:41 AM
Alright, thanks!

u sicko!
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
29 Jul 2016 12:48 AM
php is for server sided stuff
js is client sided
sql is database
Report Abuse
Everoso is not online. Everoso
Joined: 26 Jul 2016
Total Posts: 189
29 Jul 2016 01:06 AM
JS can be server-side with Node.JS.


Report Abuse
Everoso is not online. Everoso
Joined: 26 Jul 2016
Total Posts: 189
29 Jul 2016 01:07 AM
If you want to learn PHP go for it but as Casualist says you can use the MEAN stack and just know JS with frameworks.


Report Abuse
sioux123 is not online. sioux123
Joined: 18 Nov 2011
Total Posts: 970
29 Jul 2016 01:23 AM
javascript is good to learn
unless your website is pretty advanced you wont need to learn php for a while
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image