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
Top comments (0)