DEV Community

Dinesh G
Dinesh G

Posted on

My Java Full Stack Journey Learning in JavaScript

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

bczits 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>
Enter fullscreen mode Exit fullscreen mode

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,..");
}
Enter fullscreen mode Exit fullscreen mode

makeBiriyani("rice");

function name(a){
console.log(type of :a):
}
name(10);

Enter fullscreen mode Exit fullscreen mode

HAPPY CODING

Top comments (0)