TypeScript VS Jquery using for Razor page

Htet Lin 46 Reputation points
2020-12-03T00:46:45.613+00:00

Now I am developging using the Razor page with .Net Core . Please help me to to suggest
Shoud i used Typescript ro JQuery which one shoud i use ? Please advise . Thank you .

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
{count} vote

Accepted answer
  1. Jerry Cai-MSFT 986 Reputation points
    2020-12-03T03:30:23.76+00:00

    Hi,HtetLin-7338

    It's up to you, if you are used to using TypeScript, you can still use it because .net core supports it and it will be more suitable for creating

    large scale JavaScript-based applications.

    JQuery is a fast and concise JavaScript Library. About the difference and benefits about TypeScript and Jquery, you can check more details in following link:

    difference-between-typescript-and-javascript

    what-is-typescript

    Best Regards,
    Jerry Cai


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Htet Lin 46 Reputation points
    2020-12-03T03:43:39.113+00:00

    Hi Jerry Cai,
    Thank you for your suggestions.

    0 comments No comments

  2. Art 6 Reputation points
    2021-02-12T00:30:01.213+00:00

    jQuery and TypeScript are two different things, you don't really need to choose one or the other.

    jQuery is a library that you can use with either Javascript or Typescript.

    Typescript is programming language, superset of Javascript, with added static typing and syntax enhancements to address multiple shortcomings of Javascript.


  3. Jigar Shah 1 Reputation point
    2022-05-04T12:40:23.833+00:00

    I find this question very interesting. However, the usage of Razor pages depends on your requirements.

    If I talk about JavaScript, honestly, it’s not going to be obsolete anytime. Moreover, it will not be replaced as well. However, the usage of JavaScript is expanding. And web world can’t be imagined without JS.
    While talking about JQuery, it’s a renowned platform for WordPress. But it’s not gaining popularity due to other latest front-end frameworks.

    If you are still in a dilemma of choosing JavaScript vs TypeScript, you can check out the detailed blog – Difference between TypeScript vs JavaScript.

    I am sure this will clear any of your doubts.

    I hope this works! Do upvote if you find this answer relevant.

    Thanks!

    0 comments No comments

  4. Harshal Jani 0 Reputation points
    2023-03-27T06:27:05.9166667+00:00

    TypeScript is nothing but JavaScript and some additional features i.e. ES6 features. It may not be supported in your target browser but the TypeScript compiler can compile the .ts files into ES3, ES4, and ES5 also.

    TypeScript takes time to compile the code, So jQuery is faster than typescript. Here you can find why Jquery is better for .net development

    TypeScript and jQuery are two different technologies that serve different purposes.

    TypeScript is a superset of JavaScript that adds static typing and other features to make it easier to write and maintain large-scale applications. It's often used in modern web development frameworks like Angular or React.

    jQuery, on the other hand, is a popular JavaScript library that simplifies HTML document traversal and manipulation, event handling, and AJAX interactions. It's been widely used for a long time but has been losing popularity in recent years as modern web technologies have emerged.

    When it comes to using them in Razor pages, it really depends on what you're trying to accomplish. If you're building a complex web application, TypeScript can be a great choice to help manage your codebase and ensure type safety. However, if you're just looking to add some interactivity to your Razor page, jQuery may be a more lightweight and straightforward solution.

    TypeScript takes time to compile the code, So jQuery is faster than typescript , Ultimately, the decision between TypeScript and jQuery depends on your specific needs and the requirements of your project.

    0 comments No comments