This content originally appeared on DEV Community and was authored by Dinesh G
Today third day class in JavaScript. I shared the topics, What I learn Today.
Function (activity
)
set of instructions with a name
adv_code reusability
How to define function:
we can't use keywords as variable
bcz
its all are reserved words(default)
Function syntax
Function name(a,b){
parameter/arguments
} method definition
function calling--name(a,b)
console.log() parseInt(ten);
pre defined function
<body>
<script>
</script>
</body>
let i=10
;
console.log(type of a);
int give datatype
if we didn"t assign value ,it return undefined.
makeBriyani();
function makeBriyani(){
console.log(container);
consoli.log(briyami,ready,..");
}
makeBiriyani("rice");
function name(a){
console.log(type of :a):
}
name(10);
HAPPY CODING
This content originally appeared on DEV Community and was authored by Dinesh G

Dinesh G | Sciencx (2025-08-05T17:40:45+00:00) My Java Full Stack Journey Learning in JavaScript. Retrieved from https://www.scien.cx/2025/08/05/my-java-full-stack-journey-learning-in-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.