
在开始学习新事物之前,准确了解它是什么以及它的作用非常重要。这在掌握一门新的编程语言时特别有用。
简单来说,JavaScript 是一种用于使网站具有交互性的编程语言。如果你考虑网站的基本构成,你有 HTML,它描述和定义了网站的基本内容和结构,然后你有 CSS,它告诉浏览器应该如何显示这个 HTML 内容——确定颜色和字体。
仅使用 HTML 和 CSS,您就拥有了一个看起来不错但实际上并没有太多作用的网站。JavaScript 通过添加功能使网站栩栩如生。它负责用户可以与之交互的元素,例如下拉菜单、模式窗口和联系表单。它还用于创建动画、视频播放器和交互式地图等内容。
如今,JavaScript 是一种通用的编程语言——这意味着它可以在整个软件堆栈中运行。它最流行的应用程序是在客户端(也称为前端),但自从 Node.js 出现以来,许多人也在服务器端(也称为后端)运行 JavaScript。
在客户端使用时,JavaScript 代码在用户的 Web 浏览器中被读取、解释和执行。在服务器端使用时,它在远程计算机上运行。您可以在我们的指南中详细了解前端和后端编程之间的区别。
JavaScript 不仅用于创建网站。它还可以用于构建基于浏览器的游戏,并在某些框架的帮助下,用于不同操作系统的移动应用程序。新库和框架的创建也使得使用该语言构建后端程序成为可能,例如 Web 应用程序和服务器应用程序。
如果您有兴趣了解更多信息,我们已经介绍了更多关于 JavaScript 用途的示例,包括其他地方更深入的代码。但既然我们已经了解了这门已有 25 年历史的语言的一些用途,为什么要在 2022 年学习 JavaScript?
Web 开发的世界在不断变化。有这么多新工具不断涌现,很难知道应该把精力集中在哪里。作为一名有抱负的开发人员,您需要确保您所学的内容在当今的行业中仍然具有相关性。
如果您对这种语言有疑问,请不要。值得注意的是,自从 1995 年 JavaScript 诞生以来,它在网络上几乎无处不在——而且这种情况不太可能很快改变。根据 2022 StackOverflow 开发者调查,它连续十年成为最常用的编程语言。
它目前被 94.5% 的网站使用,尽管 JavaScript 最初被设计为客户端语言,但现在已经进入网站的服务器端(感谢 Node.js)、移动设备(感谢 React Native 和 Ionic)和桌面(由 Electron 提供)。像 npm 这样的包管理器使它更加强大。
如果您想立即开始并体验一下,在此视频中,我们的常驻 Web 开发人员 Abhishek 向您介绍了 JavaScript。
Use Modern HTML5, CSS3, VanillaJs, Boots, JavaScript To build Responsive And Mobile Friendly Web Development project
Instructors: Pianalytix .
21 sections • 249 lectures • 30h 59m
Video: MP4 1280×720 44 KHz | English + Sub
Updated 10/2022 | Size: 13 GB
What you’ll learn
Projects with pure JavaScript, HTML5, CSS3 with all code provided
Write clean, maintainable and performant Javascript code
Build beautiful and customizable, real world frontend applications
Avoid common pitfalls and mistakes other Javascript coders make
Requirements
Basic knowledge of JavaScript
Description
Before you start learning something new, it’s important to understand exactly what it is and what it does. This is especially useful when it comes to mastering a new programming language.
In simple terms, JavaScript is a programming language used to make websites interactive. If you think about the basic makeup of a website, you have HTML, which describes and defines the basic content and structure of the website, then you have CSS, which tells the browser how this HTML content should be displayed—determining things like color and font.
With just HTML and CSS, you have a website that looks good but doesn’t actually do much. JavaScript brings the website to life by adding functionality. It’s is responsible for elements that the user can interact with, such as drop-down menus, modal windows, and contact forms. It is also used to create things like animations, video players, and interactive maps.
Nowadays, JavaScript is an all-purpose programming language—meaning it runs across the entire software stack. The most popular application of it is on the client side (aka frontend), but since Node.js came on the scene, many people run JavaScript on the server side (aka backend) as well.
When used on the client side, JavaScript code is read, interpreted, and executed in the user’s web browser. When used on the server side, it is run on a remote computer. You can learn more about the difference between frontend and backend programming in our guide.
JavaScript isn’t only used to create websites. It can also be used to build browser-based games and, with the help of certain frameworks, mobile apps for different operating systems. The creation of new libraries and frameworks is also making it possible to build backend programs with the language, such as web apps and server apps.
If you’re interested in learning more, we’ve covered more examples of what is JavaScript used for, including code in more depth elsewhere. But now that we know some of the array of uses of this twenty five year-old language, why learn JavaScript in 2022?
The world of web development is constantly moving. With so many new tools popping up all the time, it can be extremely difficult to know where you should focus your efforts. As an aspiring developer, you’ll want to make sure that what you’re learning is still relevant in today’s industry.
If you’re having doubts about this language, don’t. It’s important to note that since its creation in 1995 JavaScript is pretty much everywhere on the web—and that’s not likely to change any time soon. According to the 2022 StackOverflow developer survey, it’s the most commonly used programming language for the ten year in a row.
It is currently used by 94.5% of all websites and, despite originally being designed as a client-side language, JavaScript has now made its way to the server-side of websites (thanks to Node.js), mobile devices (thanks to React Native and Ionic) and desktop (courtesy of Electron). Package managers like npm make it even more powerful.
If you want to kick things off now and get a taste, in this video our resident web developer Abhishek gives you an introduction to JavaScript.
Who this course is for
Beginners in JavaScript
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/38430.html