typescript vs javascript
JavaScript:
function my_function(my_param) {
console.log('do something');
}
TypeScript:
function my_function(my_param: any) {
console.log('do something');
}They are really almost the same theres not the same param types like
JAVASCRIPT is function myFunction(param)
while typescript is
function myFunction(the_param: something)// What differs typescript from javascript is the strict usage of types.
// Javascript is a loosely typed language,
// while Typescript is strictly typed.
// Javascript
let car = 'BMW';
let age = 15;
// Typescript
let car: string = 'BMW';
let age: number = 15;
Also in JavaScript:
- react manifest.json 404 (not found)
- calculate width of text javascript
- get value onChange from mat-select angular
- Embed Example Discord.js
- js array delete specific element
- dom queryselector
- js try..catch works synchronously.
- download a file nodejs
- nodemailer
- validador de telefone javascript
- ajax vs rest
- Javascript pong game
- regex any character
- jquery add option to select
- react router catch all 404
- javascript string contains function
- showing an image in react js
- angular one way property binding
- redirect to different page in javascript
- js array into object
- javascript check if element is visible on scroll
- loopback before save
- how do i check if JQuery checkbox is checked
- rematch config