
alert(1999)
// console.log() is used in JavaScript
alert(2002)
console.log(2002)
/* write variable names for the following data
first name "Tamim"
last name "Iqbal"
current team "Khulna Tigers"
runs in test "5134"
runs in ODI "8357"
runs in T20 "1758"
*/
// solution:
let firstName = "Tamim"
let lastName = "Iqbal"
let currentTeam = "Khulna Tigers"
let runsInTest = "5134"
let runsInODI = "8357"
let runsInT20 = "1758"
/*
convert the following data to variables
first name "Lionel"
last name "Messi"
place of birth "Rosario, Argentina"
position "Forward, attacking midfielder"
jersey number 10
national goals 106
is messi married = true
is messi injured = false
*/
// Solution:
let firstName = "Lionel"
let lastName = "Messi"
let placeOfBirth = "Rosario, Argentina"
let position = "Forward, attacking midfielder"
let jerseyNumber = 10
let nationalGoals = 106
let isMessiMarried = true
let isMessiInjured = false
// write a custom function
/*
write a custom function called "sayHello"
it should alert "Hello" when you call it
call the function
*/
// solution:
function sayHello() {
alert("Hello")
}
sayHello()
// write a function with parameter
/*
write a function name "alertYear"
add a parameter "year"
the function will alert the year value
call the function with the parameter
*/
// solution:
function alertYear(year) {
alert(year)
}
alertYear(2002)
// write a function with return
/*
write a function called "doubleValue"
add a parameter called "number" in the function
add the following inside the function:
return number * 2
call the function with any number and this time save the output
to a variable called "result"
alert the result
*/
// solution
function doubleValue(number) {
return number * 2
}
let result = doubleValue(100)
alert(result)
// create a custom object
/*
convert the following data to
an object called "person"
let firstName = "Tamim"
let lastName = "Iqbal"
let currentTeam = "Khulna Tigers"
let runsInODI = 8357
let runsInT20 = 1758
*/
// solution:
let person = {
firstName: "Tamim",
lastName: "Iqbal",
currentTeam: "Khulna Tigers",
runsInODI: 8357,
runsInT20: 1758,
}
// access and change properties
/*
alert the runsInODI property
change the currentTeam to "Khulna Tigers"
alert the currentTeam property
*/
let person = {
firstName: "Tamim",
lastName: "Iqbal",
currentTeam: "Dhaka Dominators",
runsInODI: 8357,
runsInT20: 1758,
}
let person = {
firstName: "Tamim",
lastName: "Iqbal",
currentTeam: "Dhaka Dominators",
runsInODI: 8357,
runsInT20: 1758,
}
// solution
alert(person.runsInODI)
person.currentTeam = "Khulna Tigers"
alert(person.currentTeam)
// write a method
/*
add a new method "sayName" for the following object
the method will alert the value "My name is Tamim Iqbal"
call the method
*/
let person = {
firstName: "Tamim",
lastName: "Iqbal",
currentTeam: "Dhaka Dominators",
runsInODI: 8357,
runsInT20: 1758,
}
// solution
let person = {
firstName: "Tamim",
lastName: "Iqbal",
currentTeam: "Dhaka Dominators",
runsInODI: 8357,
runsInT20: 1758,
sayName: function() {
alert("My name is Tamim Iqbal")
}
}
person.sayName()
জাভাস্ক্রিপ্ট পৃথিবীর সবচেয়ে জনপ্রিয় প্রোগ্রামিং ল্যাংগুয়েজ। এই একটা ল্যাংগুয়েজ দিয়ে ওয়েব, মোবাইল, ডেস্কটপ সহ সব ধরনের সফটওয়্যার বানানো যায়। জাভাস্ক্রিপ্ট একটি এক্সেসিবল ল্যাংগুয়েজ যা একটা ওয়েব ব্রাউজার (ক্রোম, ফায়ারফক্স) এই রান করা যায়। এটি চালানোর জন্য আলাদা কোন স্পেশাল সফটওয়্যার ইন্সটল করা লাগে না।
এই কোর্সে তুমি জাভাস্ক্রিপ্ট দিয়ে প্রোগ্রামিং এর ফান্ডামেন্টাল শিখবে। জাভাস্ক্রিপ্ট ব্যাবহার করে প্রোগ্রামিং এর প্র্যাকটিক্যাল কাজ গুলো করবে। আর প্রোগ্রামিং এর ফান্ডামেন্টালগুলো শিখে তুমি ভবিষ্যতে অন্যান্য ল্যাংগুয়েজ এবং টুলস শিখতে পারবে।
এই কোর্সে প্রোগ্রামিং এর সকল ফাউন্ডেশনাল কনসেপ্টগুলো তুমি ব্যাখ্যা সহ জানবে। এরপর এক এক করে সেগুলো প্র্যাকটিক্যালি এপ্লাই করা শুরু করবে।
JavaScript is the most popular programming language in the world. It lets you build applications for the universal web platform: the web. Learn the fundamentals of key programming concepts and build your programming foundations.
It is one of the easiest languages to get into. It requires no special software to install on the PC. You can run JavaScript just with a web browser like Google Chrome, or Firefox.
You will learn all the programming fundamentals in this course. Learning the fundamentals of programming will allow you to dive into other programming languages like C++, Java, C#, and Python. With practical knowledge of JavaScript coding, you can then apply them to build projects.
This course is intended for purchase by adults. Those under 18 may use the services only if a parent or guardian opens their account, handles any enrollments, and manages their account usage.
১৮ বছরের কম বয়সি শিক্ষার্থীদের ক্ষেত্রে অবশ্যই তাদের বাবা/মা, অথবা গার্ডিয়ান এর মাধ্যমে এই কোর্সে এনরোল হতে হবে।