Found a total of 10000 related content
Write Reusable JavaScript Business Logic with peasy-js
Article Introduction:Peasy-js: Build reusable, scalable, and easy to test business logic
Peasy-js is an intermediate-layer framework that builds business logic in a composable, reusable, extensible and easy to test, allowing easy replacement of UI, backend, and data access frameworks in applications. It promotes separation of business logic, makes it easy to test, replace, rearrange, reuse, and can be used in any application architecture, compatible with a variety of JavaScript clients, servers, data access technologies and frameworks.
The core concepts of Peasy-js include: BusinessService, Command, Rule and DataProxy. These concepts are in business logic arrangement and data verification
2025-02-17
comment 0
363
Js in bits - nteraction)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Interaction
There are 3 default interactions provided by js. All 3 of them are modals.
If any of them are triggered, it will stop the
2024-12-30
comment 0
307
Js in bits - Nullish Colaescing)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
?? Nullish Colaescing
A few examples
Leave y'r thoughts....
2024-12-31
comment 0
1063
Js in bits - ogical Operators)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Examples:
Zoom in and understand better.
Leave y'r thoughts....
2024-12-30
comment 0
898
Js in bits - (basic operators)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Number conversion with Unary
Converts non-numbers ---> numbers:
Leave y'r thoughts....
2025-01-02
comment 0
1121
Js in bits - (Logical Operators)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
AND Examples
A lot of examples to turn the gears in head.
Leave y'r thoughts....
2024-12-30
comment 0
622
Js in bits - emicolon ;)
Article Introduction:Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.
semicolon ;
Semicolon is used to execute 2 separate statements on a single line or multiple lines.
JS inserts the semicolon
Js is inte
2024-12-27
comment 0
905
Js in bits - ullish Colaescing)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
?? comparison with ||
Looks like ?? and || are same, but why we need ??
Example:
Order of precedence matters!!
Without para
2025-01-02
comment 0
741
Js in bits - onditional Branching)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
? ternary operator
The if/elseif/else conditions can be written with ternary operator
Multiple conditions with ?
For Better eye
2025-01-01
comment 0
566
Js in bits - ype Conversions)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Type Conversions
Most of the time, operators & functions automatically convert the vals given to them to the right type.
Stri
2025-01-02
comment 0
591
Js in bits - (typeof)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
datatypes
typeof
It is an operator to check the type of a value.
Some other types with typeof
1 last thing:
2024-12-27
comment 0
981
Js in bits - cript)
Article Introduction:Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.
To write js in html, we can use script tag.
Other ways to use script tag
1, Write javascript in a .js file and link it with s
2024-12-29
comment 0
931
Js in bits - (Comparisons)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.
Comparison of diff types
Here we compare strings with numbers and boolean with numbers
Few examples to turn gears in mind
1 mo
2024-12-29
comment 0
597
Js in bits - (datatypes - undefined)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it easily.
datatypes
undefined
Leave y'r thoughts....
2024-12-30
comment 0
700
Js in bits - (datatypes - null)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it easily.
datatypes
null
Leave y'r thoughts....
2024-12-31
comment 0
954
Js in bits - use strict)
Article Introduction:Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.
'use strict'
Js is backwards compatible
The old code never breaks as they are not removed after all these years.
Problem: Because of this
2025-01-04
comment 0
851
Js in bits - (datatypes - String)
Article Introduction:Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.
datatype
String
There is no char datatype in js like other languages. A single char is also stored in String datatype.
${str1} works as
2025-01-03
comment 0
964
Js in bits - (datatypes - BigInt)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it easily.
datatypes
BigInt
There are very large numbers like 9007199254740995(2^53) and Js can't store them using Number data type.
If we do the
2024-12-27
comment 0
950
Js in bits - (datatypes - Objects & Symbols)
Article Introduction:Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it easily.
datatypes
Objects & Symbols
More on Objects & Symbols in future....
Leave y'r thoughts....
2024-12-28
comment 0
268