Tuesday, 19 May 2020

if else and switch statement in JavaScript

welcome back to another tutorial today i am going to show you if else statement in javascript. i hope you will try with me
so let's start coding


start switch statement in javascript

switch (1){ case 1: text = 'weekday' break; case 2: text = 'weekday' break; case 3: text = 'weekday' break; default: text = 'weekend' } console.log(text)

that's it i hope guys your are enjoyed and do this multiple time thanks for read and trying

No comments:

Post a Comment