graham23s Posted January 25, 2008 Share Posted January 25, 2008 Hi Guys, i figure it's about time i took a dive into javascript i really want to learn about AJAX , but obviously need to learn some javascript first, my question is , have any of you guys found it easy/easier going to another language from another? from what i can see javascript used if/elses and functions like PHP , so should that make it easier for me to learn kinda thing? cheers for any input Graham Quote Link to comment https://forums.phpfreaks.com/topic/87808-learning-javascriptajax-from-php/ Share on other sites More sharing options...
rhodesa Posted January 25, 2008 Share Posted January 25, 2008 There are a lot of similarities. W3Schools is a great place to start learning: http://www.w3schools.com/js/ Quote Link to comment https://forums.phpfreaks.com/topic/87808-learning-javascriptajax-from-php/#findComment-449150 Share on other sites More sharing options...
hcdarkmage Posted January 25, 2008 Share Posted January 25, 2008 I'm getting that strange feeling of deja vu. I know I've seen this post some where . . . Quote Link to comment https://forums.phpfreaks.com/topic/87808-learning-javascriptajax-from-php/#findComment-449204 Share on other sites More sharing options...
hcdarkmage Posted January 25, 2008 Share Posted January 25, 2008 I'm getting that strange feeling of deja vu. I know I've seen this post some where . . . I was right: http://www.phpfreaks.com/forums/index.php/topic,171284.0.html Quote Link to comment https://forums.phpfreaks.com/topic/87808-learning-javascriptajax-from-php/#findComment-449209 Share on other sites More sharing options...
roopurt18 Posted January 25, 2008 Share Posted January 25, 2008 PHP belongs to the class of programming languages labeled as procedural (or even object oriented) I guess. All languages belonging to this class of languages will share the same concepts, stuff like functions, variables, statements, looping, conditional testing, etc. If you understand the concept in one language, you should understand it in all of the others. Where the languages can differ is in the syntax: PHP if($value == true){ echo "Hello"; } Some other language IF value = true THEN print "Hello" ENDIF If you understand the general concepts of PHP, then you should be able to figure out that the other code does the same thing. You should be able to draw the correlations between a variable in one and a variable in another. And if I were to ask you to write code in the "other" language that tests value against false and prints "Bye" as its message, you should be able to do it based on what I've shown you so far. To take your question even further, PHP, Java, C++, Javascript, and several other languages, are all essentially built off ideas from the c language. As such, they all have a lot of similarities in syntax, such as with if-statements as you already pointed out. Lastly, the best place to learn is from a good book by a good author. I find that overall, books published by O'Reilly are very high quality. I knew a little bit about Javascript, mostly derived knowledge from what I knew of other languages, but the book I purchased on Javascript really gave me an in depth look into features and ways of doing things that 90% of all online articles neglect to mention. IMO, skip the online tutorials for Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/87808-learning-javascriptajax-from-php/#findComment-449315 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.