PParthinpaarthmane.hashnode.dev·Mar 10, 2023 · 3 min readArraysArrays are collections of items. you can consider them as variables which can store more than one value. you can store different data types in arrays. they are similar to lists in python. arrays are stored inside square brackets, each value separated...00
PParthinpaarthmane.hashnode.dev·Feb 22, 2023 · 2 min readStringsStrings are collections of characters. they are created to store and manipulate text. strings are stored inside of quotes. you can also store symbols and numbers inside strings. a string is a data type. Example: let jessePinkman= "yeah bitch!!" //dou...00
PParthinpaarthmane.hashnode.dev·Feb 21, 2023 · 1 min readFunctionsfunctions are used to automate repetitive tasks. functions can only be executed when someone invokes it (calls it). you can use functions anywhere inside of code just like variables. Syntax: functions are declared by using the function keyword, follo...00
PParthinpaarthmane.hashnode.dev·Feb 20, 2023 · 4 min readLoopsIf you want to print "Hello World!" 1000 times how will you do it? maybe you'll type console.log("Hello World!") 1000 times or maybe you'll copy-paste it. but in javascript, there is an easy way to do this, which is loops. loops can execute blocks of...00
PParthinpaarthmane.hashnode.dev·Feb 19, 2023 · 2 min readConditional StatementsSometimes you have to take actions based on the user's input or maybe you have to run a block of code based on conditions, in that case, we can use conditional statements. There are 4 types of conditional statements : if statement it is used to execu...00