Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
JavaScript from Frontend to Backend
JavaScript from Frontend to Backend

JavaScript from Frontend to Backend: Learn full stack JavaScript development using the MEVN stack with quick and easy steps

eBook
₹799 ₹1548.99
Paperback
₹1935.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

JavaScript from Frontend to Backend

Chapter 1: Exploring the Core Concepts of JavaScript

The JavaScript language was created (in the mid-1990s) to be executed in internet browsers, in order to make websites more fluid. It was originally used to control what was entered into input forms. For example, it was used to do the following:

  • Allow the entry of numeric characters in a field – and only numeric ones. Other characters, for example, letters, had to be rejected in this case. This made it possible, thanks to the JavaScript language included in the browser, not to validate the entry of the form and avoid sending data to the server, which would have indicated an entry error in this case.
  • Check that the mandatory fields of the form were all entered, by checking all the fields before sending the form fields to the server.

These two examples (among many others) show that it is desirable to have a language that checks the validity of the data entered by the user before sending this data to the server. This avoids data transfers from the browser to the server, in the event that the data entered is not correct. For more complex checks, such as checking that two people do not have the same identifier, this can continue to be done on the server because it has access to all existing identifiers.

The goal was, therefore, at the beginning of JavaScript, to have the browser check as many things as possible and then transmit the information entered to the server in order to process it.

For this, an internal browser language was created: the JavaScript language, whose name contained a very popular word at the time – “Java” (even though the two languages Java and JavaScript had nothing to do with each other).

Over the years, developers have had the idea of also associating it with the server side, to use the same language on the client side and on the server side. This allowed the creation of the Node.js server, which is widely used today.

Whether client-side or server-side, the JavaScript language uses a basic syntax that allows you to write your own programs. This is what we are going to discover in this chapter.

In this chapter, we will cover the following topics:

  • Types of variables used in JavaScript
  • Running a JavaScript program
  • Declaring variables in JavaScript
  • Writing conditions for conditional tests
  • Creating processing loops
  • Using functions

Technical requirements

To develop in JavaScript, and write and then run the programs in this book, you will need the following:

  • A text editor for computer programs, for example, Notepad++, Sublime Text, EditPlus, or Visual Studio.
  • An internet browser, for example, Chrome, Firefox, Safari, or Edge.
  • A PHP server, for example, XAMPP or WampServer. The PHP server will be used to execute JavaScript programs containing import statements in HTML pages because these import statements only work on an HTTP server.
  • A Node.js server: The Node.js server will be created through Node.js installation. We will also install and use the MongoDB database to associate the Node.js server with a database.
  • You can find the code files for this chapter on GitHub at: https://github.com/PacktPublishing/JavaScript-from-Frontend-to-Backend/blob/main/Chapter%201.zip.

Let’s now begin our discovery of JavaScript, by studying the different types of variables it offers us.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get up and running with JavaScript, the most popular web development language in the world
  • Cut through the complexity and focus on the simple aspects of web development
  • Build a simple web application using Vue.js, Node.js, and MongoDB

Description

JavaScript, the most widely used programming language in the world, has numerous libraries and modules and a dizzying array of need-to-know topics. Picking a starting point can be difficult. Enter JavaScript from Frontend to Backend. This concise, practical guide will get you up to speed in next to no time. This book begins with the basics of variables and objects in JavaScript and then moves quickly on to building components on the client-side with Vue.js and a simple list management application. After that, the focus shifts to the server-side and Node.js, where you’ll examine the MVC model and explore the Express module. Once you've got to grips with the server-side and the client-side, the only thing that remains is the database. You’ll discover MongoDB and the Mongoose module. In the final chapter of this fast-paced guide, you'll combine all these pieces to integrate a Vue.js application into a Node.js server, using Express to structure the server code and MongoDB to store the information. By the end of this book, you will have the skills and confidence to successfully implement JavaScript concepts in your own projects and begin your career as a JavaScript developer.

Who is this book for?

This book is for JavaScript developers looking to strengthen their core JavaScript concepts and implement them in building full stack apps. Prior knowledge of HTML and CSS is a must.

What you will learn

  • Trigger deferred processing with JavaScript
  • Implement Express and MongoDB with Node.js
  • Build components with Vue.js
  • Understand how to create and use modules with Node.js
  • Familiarize yourself with npm
  • Build a client-side application entirely with JavaScript
  • Dive into full stack development with Vue.js, Node.js, and MongoDB

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 06, 2022
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781801074148
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 06, 2022
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781801074148
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
₹4500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
₹5000 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 8,266.97
Responsive Web Design with HTML5 and CSS
₹3351.99
JavaScript from Frontend to Backend
₹1935.99
JavaScript from Beginner to Professional
₹2978.99
Total 8,266.97 Stars icon
Banner background image

Table of Contents

13 Chapters
Part 1: JavaScript Syntax Chevron down icon Chevron up icon
Chapter 1: Exploring the Core Concepts of JavaScript Chevron down icon Chevron up icon
Chapter 2: Exploring the Advanced Concepts of JavaScript Chevron down icon Chevron up icon
Part 2: JavaScript on the Client-Side Chevron down icon Chevron up icon
Chapter 3: Getting Started with Vue.js Chevron down icon Chevron up icon
Chapter 4: Advanced Concepts of Vue.js Chevron down icon Chevron up icon
Chapter 5: Managing a List with Vue.js Chevron down icon Chevron up icon
Part 3: JavaScript on the Server-Side Chevron down icon Chevron up icon
Chapter 6: Creating and Using Node.js Modules Chevron down icon Chevron up icon
Chapter 7: Using Express with Node.js Chevron down icon Chevron up icon
Chapter 8: Using MongoDB with Node.js Chevron down icon Chevron up icon
Chapter 9: Integrating Vue.js with Node.js Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(11 Ratings)
5 star 54.5%
4 star 36.4%
3 star 0%
2 star 0%
1 star 9.1%
Filter icon Filter
Top Reviews

Filter reviews by




Marco Rapaccini Sep 12, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a practical door to the giant world of JavaScript.I have almost 6 years of experience working with JavaScript, the programming language that you must know to understand what 'runs' behind a browser.But JavaScript is no more relegated to the browser: it spreaded across the server side, helping backend developers to build APIs, software engines and other amazing stuff just using one language.It doesn't mean that JavaScript is the right answer to everything, but it means that reading a book like this you can get a good idea of what you can and cannot build with it.Personnaly, I never worked enough with Vue.js and I found Eric's introduction easy to follow, so that junior, middle and senior developers can understand clearly how to use Vue.js on a client side project.What is more interesting is that I am going to implement soon into a new work project the concepts that I refreshed or learned in this book, especially the MongoDB part.You can do great things with JavaScript, so this book will be the perfect companion for your infinite journey across the seven seas of code.
Amazon Verified review Amazon
Rafi Dudekula Sep 17, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I have been given a free copy by Packt. This is a good book, for those developers who are new to JavaScript & quickly want to get up to speed on developing complete interactive/reactive applications. First, you will learn the concepts of JavaScript, then Vue.js is introduced with simple yet realistic examples, then Node.js is covered, and finally, CRUD functionality with MongoDB is explained with examples.As an experienced developer, I found the book useful in terms of reviewing fundamentals from frontend to backend in a relatively short time.
Amazon Verified review Amazon
Verified Purchase Feb 26, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good from front to back.
Amazon Verified review Amazon
Mark Meyer Oct 19, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
So far, I am very happy with this book! Its explanation of VUE in chapter 3 is really good, much better than some others I've waded through. And I typed in the code and it works.The JavaScript chapters (1 and 2) are good for those who are very new to JS or don't know the latest stuff.I'm really hoping that the Node.js part, and how to call Node up from VUE, will be good because that's what I really need. I need to know how to use VUE + Node in a complete system, but not be so overly complicated. Here's hoping!
Amazon Verified review Amazon
Butchy Brannan Jul 11, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a great introduction if you would like to get acquainted with Vuejs, Nodejs with Express, and MongoDB as the database. The book shows you how to use Vue with regards to communication between components, using attributes in components, how to manage the events within the project, and managing the project list.This book touches on the fundamentals but is more focused on learning as you the reader codes along to make the project. Before the project starts the book dedicates the first two chapters to exploring the core concepts of JavaScript. The book definitely should be paired with a JavaScript fundamentals book for better clarity.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.