EduLadder(ELADR) - CRYPTO

This is designed to incentify community members as a proof of contribution token.


Using this You can,Buy courses,Reward others and exchange for real money.


WHITE PAPER COURSES

Real Problems! Real Experts!

Join Our Telegram Channel !


The Eduladder is a community of students, teachers, and programmers. We help you to solve your academic and programming questions fast.
In eduladder you can Ask,Answer,Listen,Earn and Download Questions and Question papers.
Watch related videos of your favorite subject.
Connect with students from different parts of the world.
Apply or Post Jobs, Courses ,Internships and Volunteering opportunity. For FREE
See Our team
Wondering how we keep quality?
Got unsolved questions? Ask Questions

Babel-->View question


Asked On2022-02-08 00:01:23 by:AanchalKumari

Taged users:


Likes:
Be first to like this question

Dislikes:
Be first to dislike this question
Talk about this  Like  Dislike
View all questions
Answers

loader is an external program that Webpack invokes with the source code of a input program file. The loader transforms this code and returns it back to Webpack. This the crux of the transpilation process that the loader is performing. So if Webpack imports .ts file, it may call ts-loader which transforms TypeScript code to JavaScript.

plugin is an external program that hooks into different lifecycle events of the Webpack and performs some operation. For example, the widely used HtmlWebpackPlugin plugin listens to Webpack’s emit event and injects path of the output JavaScript and CSS files inside a .html file. This way, you do not need to manually import compiled files inside the .html file.

Now lets come to the topic of the article. Babel is a JavaScript compiler and not a webpack loader. It compiles (transpiles) higher JavaScript code (ES6+) to lower JavaScript code (such as ES5). However, Babel doesn’t come as a single package but rather as individual NPM modules.

The @babel/core package is the brain of Babel that orchestrates the compilation process. It provides APIs to transpile a JavaScript program file from a higher JavaScript version to a lower JavaScript version. You can import this package inside your own JavaScript program and use the APIs make a custom JavaScript compiler out of it.

The @babel/cli package gives you the babel command to compile JavaScript files from the command-line interface. For example, $ babel main.js command would transpile the main.js file. This package uses the @babel/core package under the hood for the compilation.

Another misunderstood bit is that “the @babel/core package does the compilation of JavaScript” which is not quite right. The @babel/core package is just an orchestrator. Consider it as a middle person between a program that imports it (or the babel command) and the program that actually does the transpilation.

In the Babel universe, we have two more pieces of the puzzle, viz. plugin and preset. The plugin is the program that does the actual transpilation of a JavaScript feature. For example, @babel/plugin-transform-arrow-functions plugin transpiles ES6 Arrow Functions to ES5 function expressions.

// from (input)
var a = () => {};
// to (output)
var a = function () {};

Answerd on:2022-02-09 Answerd By:Muskan-Kumari

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this  Like  Dislike

You might like this video:Watch more here

Watch more videos from this user Here

Learn how to upload a video over here



Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder