Coding with JavaScript For Dummies: Everything you need to know about Javascript


Coding with JavaScript For Dummies: Everything you need to know about Javascript
by 作者: Claudia Alves
Published: 2020
ISBN-13 书号: 9798666073483
Pages: 231
Language 语言: English
Pages: EPUB/AZW3
Size: 10 Mb


Book Description
Coding with JavaScript For Dummies
Everything you need to know about Javascript programming
JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it,the script is sent to the browser and it’s up to the browser to do something with it.
The fact that the script is in the HTML page means that your scripts can be seen and copied by 作者: whoever views your page. Nonetheless,to my mind this openness is a great advantage,because the flip side is that you can view,study and use any JavaScript you encounter on the WWW.
JavaScript can be used in other contexts than a Web browser. Netscape created server-side JavaScript as a CGI-language that can do roughly the same as Perl or ASP. There is no reason why JavaScript couldn’t be used to write real,complex programs. However,this site exclusively deals with the use of JavaScript in web browsers.
JavaScript is not a programming language in strict sense. Instead,it is a scripting language because it uses the browser to do the dirty work. If you command an image to be replaced by 作者: another one,JavaScript tells the browser to go do it. Because the browser actually does the work,you only need to pull some strings by 作者: writing some relatively easy lines of code. That’s what makes JavaScript an easy language to start with.
But don’t be fooled by 作者: some beginner’s luck: JavaScript can be pretty difficult,too. First of all,despite its simple appearance it is a full fledged programming Language 语言: it is possible to write quite complex programs in JavaScript. This is rarely necessary when dealing with web pages,but it is possible. This means that there are some complex programming structures that you’ll only understand after protracted studies.
Secondly,and more importantly,there are the browser differences. Though modern web browsers all support JavaScript,there is no sacred law that says they should support exactly the same JavaScript. A large part of this site is devoted to exploring and explaining these browser differences and finding ways to cope with them.
So basic JavaScript is easy to learn,but when you start writing advanced scripts browser differences (and occasionally syntactic problems) will creep up.

下载地址:

Coding with JavaScript For Dummies 9798666073483.zip

打赏
未经允许不得转载:finelybook » Coding with JavaScript For Dummies: Everything you need to know about Javascript

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫打赏

微信扫一扫打赏