ArraysArrays 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...Mar 10, 2023 · 3 min readpaarthmane.hashnode.dev
StringsStrings 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...Feb 22, 2023 · 2 min readpaarthmane.hashnode.dev
Functionsfunctions 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...Feb 21, 2023 · 1 min readpaarthmane.hashnode.dev
LoopsIf 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...Feb 20, 2023 · 4 min readpaarthmane.hashnode.dev
Conditional 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...Feb 19, 2023 · 2 min readpaarthmane.hashnode.dev